Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shiya-she opened this issue Mar 11, 2024 · 2 comments
Open

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

shiya-she opened this issue Mar 11, 2024 · 2 comments

Comments

@shiya-she
Copy link

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

@xyxiao001
Copy link
Owner

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

@shiya-she
Copy link
Author

shiya-she commented Mar 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants