Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
97DongHyeokOH committed Jul 28, 2023
2 parents bd76bcf + 50daad5 commit 544338b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/pages/upload_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def check_size(img):
w,h = img.size
tmp = w if w > h else h

if(tmp > 1024):
ratio = 1024 / tmp
if(tmp > 2024):
ratio = 2024 / tmp
img = img.resize((int(w * ratio), int(h * ratio)))
return img

Expand Down

0 comments on commit 544338b

Please sign in to comment.