xyxiao001 / vue-cropper

A simple picture clipping plugin for vue
https://github.xyxiao.cn/vue-cropper/docs/vue3.html
MIT License
4.32k stars 700 forks source link

移动端无截图框时enlarge失效 #790

Open shiya-she opened 7 months ago

shiya-she commented 7 months ago

设置enlarge 再无截图框时输出图片为图片缩放后的图片 开启截图后输出图片为放大后的图片

xyxiao001 commented 7 months ago

enlarge只对截图框存在时才生效,没有截图框不会处理图片

shiya-she commented 7 months ago

如何在无截图框时输出原始图像大小在有截图框时按截图与原图的比例输出大小 现在我的使用 const enlarge = computed(() => { if (cropper.value == null || cropper.value.scale == null) return 1; // 获取裁剪的宽高比 return 1 / cropper.value.scale; }); 设置图片裁剪后的大小 @xyxiao001 旋转后保存图片大小为页面中显示大小怎么修改为原始大小