Open Bug 1875325 Opened 5 months ago Updated 12 days ago

Large JPEG image attachments in received E-mail are not always resized to the window width.

Categories

(Thunderbird :: Message Reader UI, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

People

(Reporter: anacond71, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

  1. I sent an E-mail to myself containing three JPEGs of 4-5 MBs each, as attachments (not inline).
  2. I opened the E-Mail with the option "View" --> "Disable Attachments inline" enabled.

Actual results:

Only the first JPEG image was resized to the window width. The other two were displayed at 100% size (at about 72 dpi, so very large). The magnifying glass cursor only appeared on the first image. When I moved the mouse over the second or third image, the cursor didn't change to a magnifying glass.

Expected results:

All three images should have been resized to the window width.

Component: Message Reader UI → Untriaged
OS: Unspecified → macOS
Hardware: Unspecified → ARM64
Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → Message Reader UI
Ever confirmed: true
OS: macOS → All
Hardware: ARM64 → All

Similar problem here with RSS feeds where images are embedded in the summary, since 115.5.2. On first load, the images are not scaled to message pane width, but on second load onwards, it works fine. Still occurs on latest commit, and the patch linked above does not work, as messagePaneOnResize is not called.

I've written a patch that instead attaches a load event listener to images, so the initial overflow check waits for the width to be known. This one works fine for my problem, I was also able to reproduce OP's problem using their files and it's fixed with this patch as well.

https://gist.github.com/Suyooo/15717aac4c4b9abeeecaee81624ee31c

Duplicate of this bug: 1888900
Duplicate of this bug: 1888802

See bug #1888802 for a very similar but slightly different description of the experienced phenomenon.

Workaround: Changing the window size (of the preview pane or the entire TB window) fits all the images.

Duplicate of this bug: 1900529
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: