mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix dcd4f880a8
This commit is contained in:
parent
f1a6c5fe17
commit
4ccbae320e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user