Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#15415 from light-and-ray/fix_dcd4f88…
Browse files Browse the repository at this point in the history
…0a86e500ec88ddf7eafe65894a24b85a3

fix dcd4f88
  • Loading branch information
AUTOMATIC1111 authored Mar 31, 2024
2 parents 23ef502 + 4ccbae3 commit 859f0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postprocessing_upscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 859f0f6

Please sign in to comment.