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

This commit is contained in:
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

View file

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