Closed Bug 1616789 Opened 4 years ago Closed 4 years ago

Image rotation attribute not honored

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

75 Branch
x86_64
Windows 10
defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox75 --- wontfix

People

(Reporter: jstutte, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached image ImageFlippedError.PNG

The right image on https://www.chianterastutte.eu/site/ (me) should be displayed upright.

On FF 73 this works correctly, on Nightly 75 not.

If I add image-orientation: none to the element then it restores the previous behavior. Chrome Canary and Safari also show the rotated image.

This is a regression from bug 1607667.

Flags: needinfo?(cam)
Regressed by: 1607667
Has Regression Range: --- → yes
Keywords: regression

The EXIF metadata in that image appears to be "wrong":

$ wget -qO- https://www.chianterastutte.eu/site/jenssmall.jpg | exiftags | grep Orientation
Image Orientation: Right-Hand, Top

Checking with http://sylvana.net/jpegcrop/exif_orientation.html, Right/Top means that the image must be rotated clockwise 90 degrees to be shown at its correct orientation.

Maybe a tool has rotated the contents of the image without adjusting the EXIF orientation tag. I suggest the image itself be fixed by correcting the EXIF orientation data to be set to Left/Top, which is correct for the image data, and which doesn't require re-orientation for display:

$ exiftran -o jenssmall-corrected.jpg -nt -ni -2 jenssmall.jpg

We are hoping that there will not be much breakage from the image-orientation initial value change in bug 1607667. I'll resolve this bug as INVALID For now.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(cam)
Resolution: --- → INVALID
See Also: → 1619576
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: