Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
wailovet committed May 9, 2024
1 parent 0323ba4 commit 90f46e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mz_stylize_photo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def resize_by(image, percent):
def resize_max(im, dst_w, dst_h):
src_w, src_h = im.size

if src_h < src_w:
if src_h > src_w:
newWidth = dst_w
newHeight = dst_w * src_h // src_w
else:
Expand Down

0 comments on commit 90f46e7

Please sign in to comment.