This commit is contained in:
Andray 2024-03-31 17:05:15 +04:00
parent f1a6c5fe17
commit 4ccbae320e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def limit_size_by_one_dimention(w, h, limit):
if h > w and h > limit:
w = limit * w // h
h = limit
elif w > h and w > limit:
elif w > limit:
h = limit * h // w
w = limit