thumbnail-zoom
thumbnail-zoom copied to clipboard
Zoomed image not honoring EXIF rotation (eg upside down)
To get to the image, go to this Wikipedia article section and check out the image with the caption "A Chipotle restaurant in Brandon, Florida".
I'm assuming this is because the photo was probably originally taken upside down (according to the way the camera, presumably a smartphone, was held), and then the image is flipped back to normal through EXIF data. (I've had this happen before to my own photos.)
Thanks for the bug report and test case.
The problem is that Firefox doesn't interpret EXIF rotation by default, and from what I can tell, EXIF handling isn't well-standardized in browsers in general.
Background:
- Exif Handling is a Ghetto (2012)
- Example images from the Ghetto article -- great for testing. Open each image in its own test and Shift+hover to force a pop-up.
- CSS Image Orientation Lands in Firefox 26
When I add "image-orientation: from-image" CSS style to the pop-up's html image, the rotation problem is fixed! But it'll take more work to get right because the aspect ratio is still rotated (the image is stretched unless it was a square image).
For 180-degree rotations this partial fix should be fine. It's planned for the next release, 3.5beta1, if testing shows that it doesn't cause other problems.