fix(signature): 시그니처 이미지 크롭 비율 자유 조정 허용
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user