dadler / thumbnail-zoom

Thumbnail Zoom Plus is a Firefox plug-in which shows a full-size image pop-up when you hover over a thumbnail or image link. When you hover your mouse over a thumbnail or an image or video link, the add-on displays the full-size image or video still-frame in a floating window. Supported sites include Amazon, Bing, Facebook, Flickr, Google, IMDb, LinkedIn, Netflix, Pinterest, Reddit, Tumblr, Twitter, Yandex.ru, YouTube, Wikipedia, WordPress, Yahoo Images, and many more.
30 stars 7 forks source link

Zoomed image not honoring EXIF rotation (eg upside down) #214

Open garyking opened 9 years ago

garyking commented 9 years ago

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.)

dadler commented 9 years ago

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:

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.