←back to thread

94 points justin-reeves | 1 comments | | HN request time: 0s | source
Show context
mzur ◴[] No.46005353[source]
Browsers starting to rotate images based on EXIF is such a pain. I maintain an image annotation tool and all of a sudden images were shown differently to users depending on the browser they used. Then you have to jump through all sorts of hoops to ignore the EXIF orientation again. In some cases you are not allowed to see if the orientation was changed for security reasons. And then the only way to control this is through a CSS attribute which only works if the element is in the DOM.
replies(5): >>46005381 #>>46005382 #>>46005519 #>>46005618 #>>46006856 #
Linkd ◴[] No.46005381[source]
The amount of time I've spent dealing with this over the years is just incredible.. It's gotten to the point where during ingestion we auto-rotate everything just in case and strip out exif orientation metadata and never have to deal with it again.
replies(2): >>46008912 #>>46009973 #
1. jjcm ◴[] No.46008912[source]
This is the correct approach in my opinion. Metadata should not be used to control rotation - there are just too many edge cases for where it can go wrong.