cubecart / v6

CubeCart Version 6
https://cubecart.com
72 stars 59 forks source link

GD to respect EXIF Orientation #3478

Closed abrookbanks closed 6 months ago

abrookbanks commented 6 months ago

If an image is uploaded that's been taken on a device that adds an orientation header thumbnails need to respect this and rotate accordingly.

Screenshot 2024-01-26 at 09 41 16

In the picture above the resized image has disregarded the Orientation of the image set in the source file.

abrookbanks commented 6 months ago

Useful test cases https://github.com/recurser/exif-orientation-examples

abrookbanks commented 6 months ago
Screenshot 2024-01-26 at 11 33 16
abrookbanks commented 6 months ago

Working beautifully now. Tested on live merchant store with thousands of incorrect thumbnails that were ignoring the exif orientation.