bpatrik/pigallery2

Rotated images go back to non-rotated when zooming

Forza-tng opened this issue · 3 comments

Hi, I noticed that for pictures that have rotation tag, thumbnails and previews are rendered correct, but when zooming in on the picture it loads the original file and that is shown without rotation.

Screenshot_20200731-173335_Opera

Screenshot_20200731-173240_Opera

This happens on the phone and on the desktop.

It seems that browsers finally fixed image rotation: https://caniuse.com/#feat=css-image-orientation
I was manually fixed in #11
That is a good news as it will speed up the application.
Unfortunately fixing this breaks the "duck image" in #19 and I could not find a solution for that.

Note: you might need to empty your tmp folder so the app regenerate the thumbnails. (otherwise all your photos will look rotated)