Sail

Results 23 comments of Sail

[removeImage](https://we-plugin.github.io/we-cropper/#/api?id=wecropperremoveimage-v139%e6%94%af%e6%8c%81) v1.3.9支持了

https://we-plugin.github.io/we-cropper/#/api?id=wecroppergetcropperimageoptcallback getCropperImage 参数传组件上下文既可 ```javascript getCropperImage({ componentContext: this }) ```

@lijibing01 看看能否在本仓库 PR 修复一下

@xiaowuzei mpvue的例子加上了,现在就可以支持

> 想知道图片裁剪完模糊问题解决了吗 @udbbbn ```getCropperImage({ original: true })``` 参考 [Changelog](https://we-plugin.github.io/we-cropper/#/changelog?id=v133-%EF%BC%882019-01-08%EF%BC%89)

@sophiaWang611 感谢定位问题,另外,是否只在特定机型特定基础库出现呢?

自定义组件中: 1. 构造器中需通过 ctx 以及 targetCtx 来传入组件内 canvas 上下文,[可参考](https://github.com/we-plugin/we-cropper/blob/master/packages/miniprogram-cropper/src/index.js#L28-L31) 2. 生成图片时,调用 getCropperImage 时也需要传入组件上下文,[可参考](https://github.com/we-plugin/we-cropper/blob/master/packages/miniprogram-cropper/src/index.js#L61-L64 ) 可以直接使用基于 we-cropper 封装的小程序自定义组件 [miniprogram-cropper](https://github.com/we-plugin/we-cropper/tree/master/packages/miniprogram-cropper)

目前没有封装resizecut的方法,先尝试修改实例里的cut属性吧 ```javascript this.wecropper.cut = { x: newX, y: newY, width: newWidth, height: newHeight } ```

稍晚些出一个resizeCut的方法