未验证 提交 859f0f6b 编写于 作者: A AUTOMATIC1111 提交者: GitHub

Merge pull request #15415 from light-and-ray/fix_dcd4f880

fix dcd4f880
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册