cropperjs

JavaScript image cropper.

MIT License

Downloads
3.6M
Stars
12.6K

Bot releases are hidden (Show)

cropperjs - v1.6.1 Latest Release

Published by fengyuanchen about 1 year ago

  • Fix an issue where some CSS styles were incompatible with old browsers.
cropperjs - v1.6.0

Published by fengyuanchen about 1 year ago

  • Add a rounded option to the getCroppedCanvas method (#1047).
cropperjs - v1.5.13

Published by fengyuanchen almost 2 years ago

  • Add backface-visibility: hidden to the cropper image to avoid ghost lines when moving (#982).
  • Remove useless cropper-hide class from cropper image.
  • Check whether the parent node exists or not before removing the cropper container.
cropperjs - v2.0.0-beta

Published by fengyuanchen over 2 years ago

As of v2.0.0-beta, Cropper.js has been refactored with custom elements, which is completely different from v2.0.0-alpha.

cropperjs - v2.0.0-alpha.2

Published by fengyuanchen almost 3 years ago

  • Merge improvements from v1.
cropperjs - v1.5.12

Published by fengyuanchen over 3 years ago

  • Fix the cropper responsive when only the height was changed (#835).
cropperjs - v1.5.11

Published by fengyuanchen over 3 years ago

  • Fix TypeScript declarations compatibility (#799).
cropperjs - v1.5.10

Published by fengyuanchen over 3 years ago

  • Explicitly set the XMLHttpRequest request to be asynchronous (#682).
  • Improve TypeScript declarations (#791).
cropperjs - v1.5.9

Published by fengyuanchen about 4 years ago

  • Fix the issue of fail to zoom out on touch device (#726).
  • Add TypeScript declarations for the events.
cropperjs - v1.5.8

Published by fengyuanchen about 4 years ago

  • Fix the issue when the value of the minContainerWidth/Height options is 0 (#683).
  • Reset the initial canvas size when the minCanvasWidth/Height options is set (#725).
  • Store the initial image data in the right place for avoiding side-effect.
cropperjs - v1.5.7

Published by fengyuanchen over 4 years ago

  • Improve container resizing (#636).
  • Improve touch device detection (#614).
cropperjs - v2.0.0-alpha.1

Published by fengyuanchen almost 5 years ago

  • Merge improvements from v1.
cropperjs - v1.5.6

Published by fengyuanchen about 5 years ago

  • Improve event type determining for iOS 13+ (#571).
cropperjs - v1.5.5

Published by fengyuanchen about 5 years ago

  • Clone the image's crossOrigin attribute always even though the checkCrossOrigin is set to false (#535).
  • Improve browser environment detecting (#554).
cropperjs - v1.5.4

Published by fengyuanchen over 5 years ago

  • Avoid removing the events of the original image.
  • Avoid requesting any Data URLs by XMLHttpRequest for better performance (#526).
  • Add an alt attribute to all internal images for better accessibility (#548).
  • Transform enums to types from the definition files for TypeScript (#550).
cropperjs - v1.5.3

Published by fengyuanchen over 5 years ago

  • 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).
cropperjs - v1.5.2

Published by fengyuanchen over 5 years ago

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

Published by fengyuanchen over 5 years ago

  • Revert the minimum container width from 300 to 200.
  • Revert the minimum container height from 150 to 100.
cropperjs - v2.0.0-alpha

Published by fengyuanchen over 5 years ago

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.
cropperjs - v1.5.0

Published by fengyuanchen over 5 years ago

  • 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).
Package Rankings
Top 0.43% on Npmjs.org
Badges
Extracted from project README
Downloads Version Gzip Size
Related Projects