View Issue Details

IDProjectCategoryView StatusLast Update
0006169SOGowith SOGopublic2026-05-06 18:10
Reportercdmon Assigned Tosebastien  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platform[Server] LinuxOSUbuntuOS Version16.04 LTS
Product Version5.12.4 
Summary0006169: Image signature scaling issue: missing height attribute in style tag causes display problems in other email clients
Description

We have found a bug related to image scaling in email signatures. When an image is resized within the signature editor, the generated HTML code is incomplete, causing display issues when the email is received by other email clients.

Symptoms:

  • When resizing an image in the signature editor, the style tag only includes the width attribute
  • The height attribute is missing from the style tag
  • The original height attribute remains in the <img> tag
  • This causes a mismatch: width from style + height from img tag
  • Recipients using other email clients see distorted/broken images due to incorrect aspect ratio
Steps To Reproduce
  • Create or edit an identity signature containing an image
  • Resize/scale the image using the signature editor
  • Inspect the source code of the signature
  • Observe that the style tag contains only width but not height
  • Send an email using this signature
  • Check how the signature displays in other email clients (Gmail, Outlook, Thunderbird, etc.)
  • Reply the msg in Thunderbird or inspect code in gmail.
Additional Information

When resizing, it only adds width, but not height. This causes it to be displayed incorrectly.

<img class="image_resized" style="aspect-ratio:1023/576;width:437px;"

Correct one:
<img class="image_resized" style="aspect-ratio:1023/576;width:437px;height:437px;"

It seems a bug in the CKEeditor:

Tagsresize, signature, sogo

Activities

sebastien

sebastien

2026-05-06 18:09

administrator   ~0018450

Hello,

Fixed in https://github.com/Alinto/sogo/commit/05d588bc3a326b8195dc1ec61faa730a19859111
Not merged yet, I will update the ticket once done.

Sebastien

Issue History

Date Modified Username Field Change
2025-12-30 11:06 cdmon New Issue
2025-12-30 11:09 cdmon Tag Attached: sogo
2025-12-30 11:09 cdmon Tag Attached: signature
2025-12-30 11:09 cdmon Tag Attached: resize
2026-05-06 18:09 sebastien Note Added: 0018450
2026-05-06 18:10 sebastien Assigned To => sebastien
2026-05-06 18:10 sebastien Status new => resolved
2026-05-06 18:10 sebastien Resolution open => fixed