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
|
# https://stackoverflow.com/a/26928142
|
||||||
|
|
||||||
try:
|
try:
|
||||||
exif = image._getexif()
|
exif = image.getexif()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue