ermig1979 / AntiDupl

A program to search similar and defect pictures on the disk
https://ermig1979.github.io/AntiDupl
MIT License
1.23k stars 92 forks source link

Rotated photos showing un-rotated. #158

Closed whitecat closed 4 months ago

whitecat commented 1 year ago

I am using Windows 11. Version 2.3.10. Photos that are rotated show up in the application as un-rotated.

Steps to reproduce:

  1. Make a folder with a photo
  2. Make a copy of the photo
  3. Rotate the copy
  4. Run AntiDupl on the folder

Expected behaviour The AntiDupl will show the copy rotated and the original correct

Actual behaviour The copied photo and the original photos are both the same orientation.

Edi61 commented 1 year ago

Hello whitecat,

which kind of image is it? Could you post a sample image file?

regards

whitecat commented 1 year ago

Here is a sample image. If I load these on my windows 11 antidupl. Both images show right side up. I have verified this downloading these images putting them into a folder and running antidupl on the folder: 2image6885 This is the copied image rotated: 2image6885-copy

Edi61 commented 1 year ago

Hi whitecat,

the rotation information in the second picture is stored in the EXIF metadata (-> Rotate 270 CW). That's currently not considered by AntiDupl neither for comparision nor for viewing the image.

Regards,

whitecat commented 1 year ago

Thank you for the feedback. Both windows and mac only update the EXIF data when rotating. I would need to use a tool to read the EXIF and actually rotate the image.