This commit is contained in:
parent
13e61b7bef
commit
05a184fcf7
2
app.py
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user