From 75aed302032ba153bf09ffb67bcd25d573d9fcd9 Mon Sep 17 00:00:00 2001 From: LTSGOD Date: Fri, 28 Jul 2023 09:03:59 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20frotend=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20resize=EA=B8=B0=EC=A4=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pages/upload_image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pages/upload_image.py b/app/pages/upload_image.py index f879585..d2ba5e7 100644 --- a/app/pages/upload_image.py +++ b/app/pages/upload_image.py @@ -31,8 +31,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