A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
setImage
method to change image source after Croppr is initialised.See #6.
destroy
method to remove the Croppr instance and restore the original img
elementAdded the following three new callbacks for better control over how you can react to Croppr:
onCropStart
: Triggers when users start modifying the crop regiononCropMove
: Triggers when crop region changes (similar to the current onUpdate
)onCropEnd
: Triggers when users stop modifying the crop regionDeprecated the onUpdate
callback in favour of onCropMove
. The callback still remains for backwards compatibility, but developers still using it will see a deprecation notice. See #7