fussel icon indicating copy to clipboard operation
fussel copied to clipboard

auto rotate images by EXIF

Open mavack opened this issue 3 years ago • 1 comments

Do you want to add a true/false for auto rotating the images to the correct orientation, your current resizes don't maintain EXIF so the output thumbs are sometimes orientated incorrect.

There are always ways to retain EXIF which might also allow the devices to draw correct orientation

Lots of ways to skin this cat, i just did the following which worked for me, but not sure what it would break on.

#            shutil.copyfile(photo, new_original_photo)
            im = Image.open(photo)
            im = ImageOps.exif_transpose(im)
            im.save(new_original_photo)

mavack avatar May 21 '21 01:05 mavack

I've implemented your suggestion in the v2 branch. Please let me know if it works for you?

cbenning avatar Feb 13 '23 04:02 cbenning