Commit 4ccbae32 authored by Andray's avatar Andray

fix dcd4f880

parent f1a6c5fe
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment