haltakov / simple-photo-gallery

Beautiful and simple photo galleries that help you tell your story. Free and open-source.
https://haltakov.net/simple-photo-gallery
MIT License
194 stars 51 forks source link

Switched width and height for rotated photos #85

Closed haltakov closed 3 years ago

haltakov commented 3 years ago

If a photo is stored rotated, but with the correct Orientation in the EXIF data, the thumbnail is generated correctly, but the image itself not, because the width and height are switched.

Reported by a user per e-mail.

haltakov commented 3 years ago

Solved by rotating the image according to the Orientation in the EXIF data before the width and height are retrieved (similar to how it is done for the thumbnails).