Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto rotate images by EXIF #54

Open
mavack opened this issue May 21, 2021 · 1 comment
Open

auto rotate images by EXIF #54

mavack opened this issue May 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@mavack
Copy link

mavack commented May 21, 2021

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)

@cbenning
Copy link
Owner

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

@cbenning cbenning added the enhancement New feature or request label Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants