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