⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
$().cropper({
crop(event) {
console.log(
event.x,
event.y,
event.width,
event.height,
event.rotate,
event.scaleX,
event.scaleY,
);
},
});
$().cropper({
crop(event) {
console.log(
event.detail.x,
event.detail.y,
event.detail.width,
event.detail.height,
event.detail.rotate,
event.detail.scaleX,
event.detail.scaleY,
);
},
});
viewMode: 2
.getCroppedCanvas
method when provide maxWidth
or maxHeight
options (#953).rotatable
and scalable
options.