Switch to image.getexif, official as of pillow 6.
This commit is contained in:
parent
a36c5ca478
commit
1d555d20dc
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue