Kris-B / nanoGALLERY

image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
https://nanogallery2.nanostudio.org/
439 stars 101 forks source link

nanoGALLERY not honoring the EXIF Orientation tag? #103

Closed dhwalker closed 8 years ago

dhwalker commented 8 years ago

I'm just starting to use nanoGALLERY, and I've found that it doesn't seem to honor the Orientation EXIF tag in the image file. Photos with a vertical orientation are displayed on their side. Am I missing something, or is this a limitation?

David

Kris-B commented 8 years ago

nG doesn't manage the display orientation. The image display is handled by the browser, and as far as I know exif orientation is ignored by it.

wuhi commented 6 years ago

any news on this? i did some tests with CSS setting image-orientation: from-image; this fixes the orientation-issue, but nanogallery adds width and height styles manually. so they are switched.

Kris-B commented 6 years ago

actually, this setting is not widely supported at this time .... https://caniuse.com/#feat=css-image-orientation let's wait a little bit for more browser support