From b361ccf4b7342bbd62f043783cfdc748d05766eb Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 19 Jan 2026 10:23:12 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=84=B8=EB=A1=9C=EB=A1=9C=20=EA=B8=B4=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=9E=98?= =?UTF-8?q?=EB=A6=AC=EB=8A=94=20=ED=98=84=EC=83=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/image/canvas/route.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/app/api/image/canvas/route.js b/src/app/api/image/canvas/route.js index 9f4e3f52..b96e079f 100644 --- a/src/app/api/image/canvas/route.js +++ b/src/app/api/image/canvas/route.js @@ -95,16 +95,11 @@ const resizeImage = async (image) => { const scaleY = targetImageHeight / image.bitmap.height let scale = Math.min(scaleX, scaleY) // 비율 유지하면서 최대한 크게 - // scale 저장 (나중에 전체 확대에 사용) - const originalScale = scale - let finalWidth = Math.round(image.bitmap.width * scale) let finalHeight = Math.round(image.bitmap.height * scale) - if (scale >= 0.6) { - // 실제 리사이즈 실행 - image.resize({ w: finalWidth, h: finalHeight }) - } + // 항상 리사이즈 실행 (scale >= 0.6 조건 제거) + image.resize({ w: finalWidth, h: finalHeight }) //배경 이미지를 생성 const mixedImage = new Jimp({ width: convertStandardWidth, height: convertStandardHeight, color: 0xffffffff }) @@ -119,14 +114,7 @@ const resizeImage = async (image) => { opacityDest: 1, }) - // scale이 0.8 이하인 경우 완성된 이미지를 전체적으로 확대 - if (originalScale <= 0.8) { - const enlargeRatio = 1.5 // 50% 확대 - const newWidth = Math.round(mixedImage.bitmap.width * enlargeRatio) - const newHeight = Math.round(mixedImage.bitmap.height * enlargeRatio) - - mixedImage.resize({ w: newWidth, h: newHeight }) - } + // 1.5x 확대 로직 제거 - 이미지가 템플릿 크기를 초과하지 않도록 함 return mixedImage } From a687be997f5b32005da78851a928efa4f78ea5c3 Mon Sep 17 00:00:00 2001 From: ysCha Date: Mon, 19 Jan 2026 13:39:11 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EC=9D=B4=EB=A9=94=EC=9D=BC=2030=EC=9E=90?= =?UTF-8?q?=20->=2050=EC=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/Join.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/auth/Join.jsx b/src/components/auth/Join.jsx index 4c080f00..9fcc09fd 100644 --- a/src/components/auth/Join.jsx +++ b/src/components/auth/Join.jsx @@ -381,7 +381,7 @@ export default function Join() {
- +