Switch to image.getexif, official as of pillow 6.

master
voussoir 2021-06-03 21:11:19 -07:00
parent a36c5ca478
commit 1d555d20dc
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def rotate_by_exif(image):
# https://stackoverflow.com/a/26928142 # https://stackoverflow.com/a/26928142
try: try:
exif = image._getexif() exif = image.getexif()
except AttributeError: except AttributeError:
return image return image