-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Docs are missing directions for saving the cropped region. I would assume doing the following during the callback for any event listener but I'm not sure.
crop.on('end', function (region) {
var canvas = document.getElementById('canvas');
var ctx = canvass.getContext('2d');
var image = document.querySelector('#edit-image img');
ctxs.drawImage(images, region.x, region.y, region.width, region.height);
});
ronytesler
Metadata
Metadata
Assignees
Labels
No labels