Skip to content

Chrome >= 81 auto-rotates images base on EXIF orientation causing double-correction #199

@BenSturmfels

Description

@BenSturmfels

I've hit an issue where a portrait image (EXIF orientation 6) is over-rotated by 90 degrees clockwise when uploaded to Shareabouts.

EXIF orientations:
https://www.impulseadventure.com/photo/exif-orientation.html

Currently Shareabouts loads images into a canvas element in JavaScript and resizes and corrects their orientation based on the EXIF data. Unfortunately, it appears that Chrome 81 (April 2020) has been updated to perform this re-orientation automatically, resulting in a double correction. The problem is that this behaviour is different to previous version of Chrome and to other browsers like Firefox.

https://bugs.chromium.org/p/chromium/issues/detail?id=158753#c104

I don't yet have a clear plan in mind to reliably work around this. It's not really Shareabouts' fault, but I wanted to raise it in case others were seeing this confusing behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions