From 17145628a00925bbefa27a3af8ac2e54e5cc8e3c Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Sun, 6 Jul 2025 22:27:33 -0400 Subject: [PATCH] fix orientation of images --- 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 9d9e74b..c833a4e 100644 --- a/src/rendering/image.py +++ b/src/rendering/image.py @@ -34,9 +34,9 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width): if orientation == 3: img = img.rotate(180, expand=True) elif orientation == 6: - img = img.rotate(90, expand=True) - elif orientation == 8: img = img.rotate(270, expand=True) + elif orientation == 8: + img = img.rotate(90, expand=True) except (AttributeError, KeyError, IndexError): # cases: image don't have getexif exif = b""