Amazon S3 Browsing a portrait image in a browser?

I have an image posted on s3 that flips from portrait to album when it is placed inside the image tag.

Chrome shows it horizontally on the page: http://imgur.com/kJNzNQG,PgJPUsm#0

But when I open a new tab, it appears as a portrait. http://imgur.com/kJNzNQG,PgJPUsm#1

Results:

  • wget: returns a vertical image.
  • All browsers inside the image tag: horizontally
  • Chrome, Safari, FF in a new tab: vertical
  • New IE Tab: Horizontal

I can not directly refer to the image, as these are photos of users.

Has anyone come across this before?

+6
source share
1 answer

Your camera may have inserted the EXIF orientation flag in your image , which is interpreted by the browser.

Depending on your results, browsers (except IE) rotate the image if it is displayed on its own tab, but do not rotate it if it is displayed on the page.

+2
source

Source: https://habr.com/ru/post/978481/


All Articles