(no title)
mzur
|
3 months ago
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.
Linkd|3 months ago
jjcm|3 months ago
drittich|3 months ago
coldpie|3 months ago
circuit10|3 months ago
bastawhiz|3 months ago
This is only true for cross-origin images, no? Which is expected: you can't access data loaded from another origin unless it's been loaded with CORS.
taeric|3 months ago
Would love to see a good rundown of when you should rely on different approaches? Another thread pointed out that you should also use the color space metadata.
LeifCarrotson|3 months ago
Other cameras and phones and apps produce images where the device adjusts the aspect ratio and order of the array of pixels in the image regardless of the way the sensor was pointed, such that the EXIF orientation is always the default 0-degree rotation. I'd argue that this is simpler, it's the way that people ignorant of the existence of the metadata method would expect the system to work. That method always works on any device or browser, rotating with EXIF only works if your whole pipeline is aware of that method.
stackedinserter|3 months ago
It's shame that after so many years of development we ended up with such horrible formats like jpeg and mp4.