Chrome Image EXIF Orientation Issue

后端 未结 2 473
梦毁少年i
梦毁少年i 2021-01-01 10:40

I\'m building a web app that shows pictures. Most of the pictures were taken by smart phones and have EXIF rotation information. I\'m exposing a url which return the image b

相关标签:
2条回答
  • 2021-01-01 11:23

    The reason for this behavior is that Chrome auto-rotates pictures based on EXIF data only if they are displayed directly in a browser tab as the main document.

    The relevant chromium issue that tracked this implementation is the following: https://bugs.chromium.org/p/chromium/issues/detail?id=56845

    In the future, Chrome (and other browsers) will allow developers to enable auto-rotation also for images displayed via img tags with the CSS image-rotation property: https://bugs.chromium.org/p/chromium/issues/detail?id=158753

    0 讨论(0)
  • 2021-01-01 11:25

    Update: as of Chrome 81 (moved to stable on 5/13/20), this behavior is supported in both img tags and backround-image tags. https://www.chromestatus.com/feature/6313474512650240

    0 讨论(0)
提交回复
热议问题