Closed Bug 1875325 Opened 8 months ago Closed 2 months ago

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

Categories

(Thunderbird :: Message Reader UI, defect, P2)

Thunderbird 115

Tracking

(thunderbird_esr128? affected, thunderbird129? affected, thunderbird130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
thunderbird_esr128 ? affected
thunderbird129 ? affected
thunderbird130 --- fixed

People

(Reporter: anacond71, Assigned: freaktechnik)

References

(Regressed 1 open bug)

Details

Attachments

(2 files)

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

also seems to happen with RSS feeds: bug 1905541

Duplicate of this bug: 1905541
See Also: → 1905541
Assignee: nobody → martin
Status: NEW → ASSIGNED
Target Milestone: --- → 130 Branch

Pushed by sean@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/3c3ca8ea292b
Fix image overflow handling in message reader. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Duplicate of this bug: 1916357
Regressions: 1917278
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: