Another simple clipping image plugin for vue.
Can be found here: https://zawadsoon.github.io/avue-cropper/
npm install avue-cropper
Soon... For now look at the example.
This problem recently comes with xhr/ajax. So if you want send cropped image to server just send Blob returned by the canvas.
If you are not interested in VUE but want to check idea of this solution check vanilla branch.
Short instruction how to run example:
- Clone repository,
- Go to main directory,
- run
npm install
- run
npm run example:use
- Live example,
- Github pages,
- Fix issue with min zoom when messing with boundary and viewport,
- Add full touch support,
- Rewrite to TS (actually convert plugin to TS)
If you know how to improve code, something is wrong or something can be done better just open new Issue ane let me know. Feedback is welcome!
MIT