flutter_image_cropper
flutter_image_cropper copied to clipboard
Some problems about web
1.When you open an image locally, there may be some confusion, causing the problem of image scaling.
2.In the screenshot, there is a vertical line on the left, which cannot be removed.
There are also several optimization suggestions:
1.It would be better if the image clipping module could be set with rounded corners, not just circles and squares
2.If we can make the slider zoom module ourselves, it would be better to provide the zoom API
The first question is like this. Can anyone answer it
Canvas data was not bound successfully when the problem occurred
When rotated, it will be rebound
I found the problem. In the javascript code, the canvas is initializing before it is loaded, resulting in the inability to obtain the width and height of the canvas, and the problem of scaling misalignment will occur. The solution is to download croppie.min.js, and then modify the width and height of the canvas. If the width and height are not obtained, re-initialize it.
I found the problem. In the javascript code, the canvas is initializing before it is loaded, resulting in the inability to obtain the width and height of the canvas, and the problem of scaling misalignment will occur. The solution is to download croppie.min.js, and then modify the width and height of the canvas. If the width and height are not obtained, re-initialize it.
Can you provide an example of how you fixed it using this workaround of checking canvas size? Thanks