Switch to image.getexif, official as of pillow 6.
parent
a36c5ca478
commit
1d555d20dc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue