From 05a184fcf79a04c03adefff08edaedf3f0576756 Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Tue, 5 Nov 2024 22:11:45 -0500 Subject: [PATCH] Sizing Fix --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 143e50f..514595b 100644 --- a/app.py +++ b/app.py @@ -289,7 +289,7 @@ def get_images(): images = [] for photo in photos: factor = random.randint(2, 3) - if photo.height < 4000 or photo.width < 4000: + if photo.height < 4000 and photo.width < 4000: factor = 1 if photo.orientation == 6 or photo.orientation == 8: width, height = photo.height, photo.width