distorted image preview in HTML mode
Note: I found issue #1049 (closed) - it is my case. But the upstream bug report has been marked as "RESOLVED FIXED" and commit merged in March 2021. In comparison the Evolution and webkit2gtk3 versions are very different. I do not know how to proceed. File upstream bug as regression? File bug in bugzilla.redhat.com for webkit? Thank you for your help and input.
I noticed the problem on Fedora 34 with:
$ rpm -qa | grep -i evolution | sort
evolution-3.40.4-5.fc34.x86_64
evolution-data-server-3.40.4-3.fc34.x86_64
evolution-data-server-devel-3.40.4-3.fc34.x86_64
evolution-data-server-langpacks-3.40.4-3.fc34.noarch
evolution-ews-3.40.4-1.fc34.x86_64
evolution-ews-langpacks-3.40.4-1.fc34.noarch
evolution-langpacks-3.40.4-5.fc34.noarch
evolution-pst-3.40.4-5.fc34.x86_64
$ rpm -qa | grep -i webkit2gtk3 | sort
webkit2gtk3-2.34.6-1.fc34.x86_64
webkit2gtk3-devel-2.34.6-1.fc34.x86_64
webkit2gtk3-jsc-2.34.6-1.fc34.x86_64
webkit2gtk3-jsc-devel-2.34.6-1.fc34.x86_64
I can reproduce the problem on a vanilla Fedora 36 installation (all text below refers to it):
$ rpm -qa | grep -i evolution | sort
evolution-3.44.0-1.fc36.x86_64
evolution-data-server-3.44.0-1.fc36.x86_64
evolution-data-server-langpacks-3.44.0-1.fc36.noarch
evolution-ews-3.44.0-1.fc36.x86_64
evolution-ews-langpacks-3.44.0-1.fc36.noarch
evolution-langpacks-3.44.0-1.fc36.noarch
$ rpm -qa | grep -i webkit2gtk3 | sort
webkit2gtk3-2.36.0-1.fc36.x86_64
webkit2gtk3-jsc-2.36.0-1.fc36.x86_64
The problem: Evolution's HTML mode distorts the image preview for non-square images with Exif orientation metadata. A screenshot of how it is displayed in HTML preview: distorted-in-HTML-preview.jpg The image saved to file with Evolution: IMG_2931.JPG
To reproduce:
- in Evolution (local account sufficient) start new email
- in "Compose Message" window set: Format -- |x| HTML
- save IMG_2931.JPG to disk
- drag and drop JPG file into "Compose Message" window's body area
How I retrieved the files:
- other person took picture on smartphone (Apple iPhone) and sent it from smartphone with middle quality setting to me as embedded image
- on my side in Evolution in HTML mode the image preview is distorted
- "right click on distorted image preview -- Save Image..." saves a perfectly fine image
Further information:
- the JPG file contains "Exif orientation metadata"; according to GIMP:
- "Original" has blue area in upper right corner
- "Rotated" has blue area in lower right corner
- in Evolution: if "Compose Message" is in "Plain Text" mode and you drag and drop the JPG file into the body area, you get a thumbnail preview in the "Attachment Bar" at the bottom; that preview contains no distortion, but the blue area is in the lower left corner, i.e. the picture uses the "Original" orientation and then rotates the image by 180° (I might be wrong);
nautilus
' preview shows it the same way - in Evolution: if I use an image without orientation metadata, f.i. the screenshot, the image preview is correct in "Plain Text" and "HTML" mode