thibaud-rohmer / PhotoShow

A free web gallery in PHP with drag-n-drop support
http://www.photoshow-gallery.com
502 stars 151 forks source link

fixed orientation generation of cached images (small ones and thumbs) #370

Open quantenkeks opened 5 years ago

quantenkeks commented 5 years ago

The images are almost in the right representation now. The generated files (small ones and thumbs) do have the right angle now, but they still need to be mirrored horizontally. This should be a fix for issue #286. I tested it with the images from here (https://magnushoff.com/jpeg-orientation.html).

The only problem left (for me) is this: If the generated small image (?t=Img&...) has exif orientation information (3-8), because it's width and height is lower than 1200, the image doesn't get rotated by the browser.