From 2605f7db3777090840d711ab7d7bb75db90df169 Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Sat, 15 Mar 2025 19:56:40 -0400 Subject: [PATCH] more fixes --- src/rendering/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rendering/image.py b/src/rendering/image.py index 2b9a125..04551f3 100644 --- a/src/rendering/image.py +++ b/src/rendering/image.py @@ -35,10 +35,10 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width): elif orientation == 6: img = img.rotate(90, expand=True) elif orientation == 8: - img = img.rotate(270, expand=True) + img = img.rotate(90, expand=True) except (AttributeError, KeyError, IndexError): # cases: image don't have getexif - exif = None + exif = {} # Save the thumbnail to a BytesIO object thumbnail_io = BytesIO()