Embedded images break layouts due to wrong dimensions

Originator:winkelsdorf
Number:rdar://33564090 Date Originated:07/27/2017
Status: Resolved:
Product:Mail Product Version:10.3 (3273)
Classification:Bug Reproducible:Always
 
Summary:
When embedding images via `cid` received via an Apple Mail Client, the images break layouts in small preview panes when the image is larger then what is actually displayed (a.k.a. Retina Images which are twice the size of the display dimensions).

When serving images remotely, this does not occur.

Please see screenshots attach to my StackOverflow Post where I provide a simplified example, too:

https://stackoverflow.com/questions/45347978/bug-in-apple-mails-embedded-retina-image-handling-or-my-source

Steps to Reproduce:
Send a mail with embedded images e.g. 500x50px which are going to be display at 250x25px (via css). When the preview pane is smaller than 500x50px the layout is broken when the image is embedded, as Apple Mail still uses the real dimension to calculate the layout instead of the display dimensions.

Expected Results:
No display differenced between embedded and remotely served images.

Observed Results:
The layout is broken, i.e. the image overflows the surrounding table.

Version:
10.12.6

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!