we-plugin / we-cropper

微信小程序图片裁剪工具
https://we-plugin.github.io/we-cropper/#/
MIT License
2.18k stars 451 forks source link

[Feature Request] we-cropper在mpvue中截图模糊问题 #74

Closed ChengYu-Zhang closed 5 years ago

ChengYu-Zhang commented 6 years ago

描述

we-cropper在mpvue中怎样优化截图模糊问题呢?

dlhandsome commented 6 years ago

https://github.com/we-plugin/we-cropper/wiki/FAQ

ChengYu-Zhang commented 6 years ago

在mpvue中 let { imgLeft, imgTop, scaleWidth, scaleHeight } = this.wecropper let { x, y, width, height } = this.wecropper.cut 获取不到相应的参数,怎样才能获取参数呢

dlhandsome commented 6 years ago

可以先参照FAQ方式自己封装一个mpvue组件

ChengYu-Zhang commented 6 years ago

您那边封装好的组件吗?因为我这边赶项目没有时间自己封装,如果有麻烦您给我分享一下,万分感谢~

ReggieCai31 commented 5 years ago

在mpvue中 let { imgLeft, imgTop, scaleWidth, scaleHeight } = this.wecropper let { x, y, width, height } = this.wecropper.cut 获取不到相应的参数,怎样才能获取参数呢

同样的疑问

yayaQAQ commented 5 years ago

在mpvue中 let { imgLeft, imgTop, scaleWidth, scaleHeight } = this.wecropper let { x, y, width, height } = this.wecropper.cut 获取不到相应的参数,怎样才能获取参数呢

同样的疑问

这个获取不到的,你需要重新新建一个canvas,总的来说就是新建一个很大的canvas,然后用wx的api保存下来,和平常把canvas变清晰一样的套路。

kkkccc100 commented 5 years ago

在mpvue中 let { imgLeft, imgTop, scaleWidth, scaleHeight } = this.wecropper let { x, y, width, height } = this.wecropper.cut 获取不到相应的参数,怎样才能获取参数呢

请问这个问题解决了吗?我也遇到了

dlhandsome commented 5 years ago

https://github.com/we-plugin/we-cropper/pull/88