Merge pull request #15415 from light-and-ray/fix_dcd4f880a86e500ec88ddf7eafe65894a24b85a3
fix dcd4f880a8
This commit is contained in:
@@ -16,7 +16,7 @@ def limit_size_by_one_dimention(w, h, limit):
|
|||||||
if h > w and h > limit:
|
if h > w and h > limit:
|
||||||
w = limit * w // h
|
w = limit * w // h
|
||||||
h = limit
|
h = limit
|
||||||
elif w > h and w > limit:
|
elif w > limit:
|
||||||
h = limit * h // w
|
h = limit * h // w
|
||||||
w = limit
|
w = limit
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user