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.
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).
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.