latestchatty / chromeshack

Browser extension containing various scripts that enhance the Shacknews comments
http://adam.hughes.cc/shack/chromeshack/
MIT License
27 stars 16 forks source link

Embedded images with rotation information don't show rotated #162

Closed electroly closed 5 years ago

electroly commented 5 years ago

https://www.shacknews.com/chatty?id=38853812#item_38853812

The picture appears rotated when embedded, but when you open the image in a new tab, it appears the right way up. This is a problem all the clients have had since we all started posting photos from our phones, resulting in a high portion of images being posted with the image rotated in the metadata only.

I'm not sure there's anything that can be done about this, as it is a Chrome behavior to apply the rotation when viewing the JPG by itself and not apply the rotation when viewing the JPG embedded in a webpage. I'm not sure there's even a way to know in JavaScript whether the image has rotation information applied? But maybe some fancy solution has arisen since the last time I looked at rotation issues? If there's nothing that can be done, let's just close this issue as wontfix.

WombatFromHell commented 5 years ago

There's nothing to be done for this until the following CSS spec change is approved and integrated into browsers: https://www.w3.org/TR/css-images-4/#the-image-orientation

electroly commented 5 years ago

Sounds good. Closing this issue on the basis that we can't fix it.