From 40a3e9d1a0ca7d381d05a83336a295169db63838 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 6 Jun 2021 20:33:49 -0700 Subject: [PATCH] Update rotate_by_exif call. --- etiquette/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/helpers.py b/etiquette/helpers.py index 71b6b03..c710fc4 100644 --- a/etiquette/helpers.py +++ b/etiquette/helpers.py @@ -208,7 +208,7 @@ def generate_image_thumbnail(filepath, width, height): if not os.path.isfile(filepath): raise FileNotFoundError(filepath) image = PIL.Image.open(filepath) - image = imagetools.rotate_by_exif(image) + (image, exif) = imagetools.rotate_by_exif(image) (image_width, image_height) = image.size (new_width, new_height) = imagetools.fit_into_bounds( image_width=image_width,