can't set inserted images to fit window without distortion
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(Not tracked)
People
(Reporter: info, Unassigned)
Details
Attachments
(1 file)
|
199.04 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Steps to reproduce:
- Insert > Image, but the image displays way too big.
- Screw around for 10 minutes in Image Properties > Dimensions trying to get Thunderbird to display the image so that it fits the recipients' screens.
- Read HTML guides.
- Mess around some more with Advanced Edit...
- Give up and set width 640 pixels as a sucky compromise.
Actual results:
In half an hour of trying, I couldn't get Thunderbird to size an inserted image so that it fits the screen of the recipient without changing proportions.
In more detail,
- I can set Image Properties > Dimensions > Custom Size > Width and/or Height to 95 % of window, but I cannot constrain the image to maintain proportions.
- If I use 9% of window for one dimension, I cannot leave the other blank so that Thunderbird does the obvious right thing and maintains proportion.
- If I read a dozen guides to image sizing with CSS then use Advanced Edit... to set e.g. max-width: 95% and max-height: auto, I cannot get rid of width and height. (This might be bug 740772.)
I gave up. This just works in Gmail.
Expected results:
ASAP:
- Thunderbird help for the current product should prominently tell me how to get the image dimensions e-mail that most users want most of the time.
Then, something like
- Thunderbird should Do The Right Thing by default when I insert an image.
- Thunderbird should let me maintain proportion if I set width or height or both to % of window
- Thunderbird should let me set or add the right CSS (max-width: 95%?) and get rid of the image width and height or not have them override.
The Compose Responsive Images add-on fixes this by removing the width and height attributes of images and adding max-width: 100% in CSS.; see https://github.com/LionelHolt/thunderbird-compose-responsive-images/blob/main/compose_script.js. It's a better default but it is inflexible. E.g. if you want to include a large high-res image but set it to display using width and height, the extension removes width and height and makes it full-width (unless you add your own max-width setting, but now you're back to Thunderbird setting width and height).
Description
•