Closed Bug 1634025 Opened 4 years ago Closed 4 years ago

No EXIF image orientation support for background images

Categories

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

75 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1616411
Tracking Status
firefox77 --- fixed

People

(Reporter: danthedeckie, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

in a HTML document, an element with background-image set to a JPEG with EXIF metadata rotation, as in https://jsfiddle.net/5mnfsaud/ . More examples can be found in https://github.com/recurser/exif-orientation-examples
Adding CSS attribute image-orientation: from-image; makes no difference.

Actual results:

As seen in https://jsfiddle.net/5mnfsaud/ - the EXIF rotation information is ignored in Firefox (in Chrome it automatically is rotated to match the metadata).
Setting image-orientation: from-image in the img element CSS does result in them being displayed correctly - but for the div it does not.

Expected results:

I think background-images should respect EXIF metadata. Especially if you specify to use image-orientation: from-image.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Layout: Images, Video, and HTML Frames
Product: Firefox → Core

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.