From 1d555d20dc368d5e3459e7b63cf42610d4a29743 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 3 Jun 2021 21:11:19 -0700 Subject: [PATCH] Switch to image.getexif, official as of pillow 6. --- voussoirkit/imagetools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoirkit/imagetools.py b/voussoirkit/imagetools.py index 1ede548..d10b014 100644 --- a/voussoirkit/imagetools.py +++ b/voussoirkit/imagetools.py @@ -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