Image Editor that not work with option to change the image size, cropping, rotating and adjust contact of images. How to implete image editor options with customizable using javascript or jquery.
Need only this future like crop, resize, adjust with undo and redo options.
<div>
<img id="image" src="picture.jpg">
</div>
const image = document.getElementById('image');
const cropper = new Cropper(image, {
aspectRatio: 16 / 9,
crop(event) {
console.log(event.detail.x);
console.log(event.detail.y);
console.log(event.detail.width);
console.log(event.detail.height);
console.log(event.detail.rotate);
console.log(event.detail.scaleX);
console.log(event.detail.scaleY);
},
});