A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
- Made only with native, delicious vanilla JS
- Zero dependencies
- No z-index, make modals easy
- Work with real image pixel size
- Supports touch devices
- Set results in dataset of image
Via NPM:
npm install truecropper
import TrueCropper from "truecropper";
var cropInstance = new TrueCropper("#imageid", {
// ...options
});
Note: Don't forget to bundle or include trueCropper.css!
To view the documentation, please check out the demo page. →