fix(signature): 시그니처 이미지 크롭 비율 자유 조정 허용

This commit is contained in:
Yu Sung
2026-03-26 15:17:53 +09:00
parent b976b93464
commit 3865eec233
2 changed files with 17 additions and 3 deletions

View File

@@ -376,7 +376,7 @@
persistent
>
<v-card>
<v-card-title>이미지 크롭 (1:1 비율)</v-card-title>
<v-card-title>이미지 크롭</v-card-title>
<v-card-text>
<div class="cropper-wrapper">
<img
@@ -508,7 +508,6 @@ export default {
this.cropper.destroy()
}
this.cropper = new Cropper(this.$refs.cropper_image, {
aspectRatio: 1,
viewMode: 1,
})
})
@@ -535,7 +534,7 @@ export default {
const MAX_WIDTH = 800
if (canvas.width > MAX_WIDTH) {
const height = MAX_WIDTH
const height = (MAX_WIDTH * canvas.height) / canvas.width
const resizeCanvas = document.createElement('canvas')
resizeCanvas.width = MAX_WIDTH
resizeCanvas.height = height