Sizing Fix
All checks were successful
Docker Build and Publish / build (push) Successful in 7s

This commit is contained in:
Tanishq Dubey 2024-11-05 22:11:45 -05:00
parent 13e61b7bef
commit 05a184fcf7

2
app.py
View File

@ -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