This commit is contained in:
wailovet
2024-05-10 01:40:55 +08:00
parent 0323ba4b1c
commit 90f46e7a11
+1 -1
View File
@@ -342,7 +342,7 @@ class Utils:
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: