Croppr.js Versions Save

A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.

v2.3.0

6 years ago
  • Added setImage method to change image source after Croppr is initialised.

v2.2.1

6 years ago
  • Added Typescript typings for the project

See #6.

v2.1.0

6 years ago
  • Added destroy method to remove the Croppr instance and restore the original img element

v2.0.0

6 years ago
  • Added the following three new callbacks for better control over how you can react to Croppr:

    • onCropStart: Triggers when users start modifying the crop region
    • onCropMove: Triggers when crop region changes (similar to the current onUpdate)
    • onCropEnd: Triggers when users stop modifying the crop region
  • Deprecated 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