Skip to content

Releases: fengyuanchen/cropperjs

v1.5.3

10 Jul 12:10

Choose a tag to compare

  • Compute the size of the image for all browsers that use WebKit as the layout engine in iOS devices, such as Safari and in-app browsers (#544).

v1.5.2

30 Jun 06:03

Choose a tag to compare

  • Alway add a timestamp to the URL of a cross-origin image (#519).

v2.0.0-alpha

10 Mar 09:54

Choose a tag to compare

v2.0.0-alpha Pre-release
Pre-release

Breaking changes

  • Integrate the canvas and the crop box for better user experience.
  • Change the properties of the zoom event:
    • event.detail.ratio => event.detail.scale
    • event.detail.oldRatio => event.detail.oldScale

Features

  • Support to create crop box by dragging from left to right, right to left, top to bottom and bottom to top.
  • Add 4 new options: maxCanvasWidth, maxCanvasHeight, maxCropBoxWidth and maxCropBoxHeight.
  • Add 2 new properties to the getCropBoxData method: naturalWidth and naturalHeight.

v1.5.1

10 Mar 09:59

Choose a tag to compare

  • Revert the minimum container width from 300 to 200.
  • Revert the minimum container height from 150 to 100.

v1.5.0

10 Mar 09:13

Choose a tag to compare

  • Add passive: false and capture: true to wheel event for better performance.
  • Improve touch event binding.
  • Ignore the pointer events are not triggered by the primary button.
  • Fix typed array spreading error in IE or Safari 9.
  • Fix the RegExp for the Safari browser detecting to ignore Chrome (#478).

v1.4.3

24 Oct 13:09

Choose a tag to compare

  • Ignore range error when the image does not have correct Exif information

v1.4.2

15 Oct 13:29

Choose a tag to compare

  • Read orientation only when it is a JPEG image.
  • Improve cropper instance storage to avoid side effect (#394).
  • Fix parameter error of Object.assign in iOS devices (#432).
  • Improve typed array loop for better performance (#435).

v1.4.1

15 Jul 10:25

Choose a tag to compare

  • Not to restrict the canvas position when it is not cropped.
  • Fix wrong crop box size when view mode 1 and 2 (#381).

v1.4.0

01 Jun 15:35

Choose a tag to compare

  • Added 1 new option: initialAspectRatio.
  • Improve the smoothness of crop box resizing.

v1.3.6

20 May 08:05

Choose a tag to compare

  • Check orientation only when both the rotatable and scalable options are set to true.
  • In case rounding off leads to extra 1px in right or bottom border we should round the top-left corner and the dimension (#343).