jackm / kijiji-manager

App for viewing, posting, reposting, and deleting your Kijiji ads
https://pypi.org/project/kijiji-manager/
MIT License
52 stars 11 forks source link

Images Rotate when creating new ad #18

Closed adm-gis closed 3 years ago

adm-gis commented 3 years ago

When creating a new ad, the images are rotated in the wrong direction (even when they are submitted right-side-up).

jackm commented 3 years ago

This is likely due to the image's EXIF data (i.e. metadata) indicating that the image should be rotated a certain degree when displaying it, while the "raw" decoded image is actually not right-side-up. My guess is that when an image gets uploaded using Kijiji's API, the EXIF data gets stripped and so when it is displayed on Kijiji's site, it doesn't rotate it as expected.

One workaround to this is to edit the file using an image editor locally, ensure it is rotated the correct way, and then save the file again but strip out all EXIF data when doing so.

adm-gis commented 3 years ago

Yup, that made all the difference. Thanks for all your work, makes selling stuff so much more efficient.