cropperjs

JavaScript image cropper.

MIT License

Downloads
3.6M
Stars
12.6K

Bot releases are visible (Hide)

cropperjs - v1.4.3

Published by fengyuanchen almost 6 years ago

  • Ignore range error when the image does not have correct Exif information
cropperjs - v1.4.2

Published by fengyuanchen about 6 years ago

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

Published by fengyuanchen over 6 years ago

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

Published by fengyuanchen over 6 years ago

  • Added 1 new option: initialAspectRatio.
  • Improve the smoothness of crop box resizing.
cropperjs - v1.3.6

Published by fengyuanchen over 6 years ago

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

Published by fengyuanchen over 6 years ago

  • Ensure the cloned image loads completely before trigger the ready event to avoid side effect (#303).
  • Add namespace to data attribute names (from data-* to data-cropper-*) to avoid side effect (#319).
cropperjs - v1.3.4

Published by fengyuanchen over 6 years ago

  • Compute destination sizes with image's aspect ratio when draw image (#326)
cropperjs - v1.3.3

Published by fengyuanchen over 6 years ago

  • Improve event binding.
  • Add missing pivot definition to zoomTo method (#320)
cropperjs - v1.3.2

Published by fengyuanchen over 6 years ago

  • Fix the bug of cropping image with orientation (#313).
cropperjs - v1.3.1

Published by fengyuanchen over 6 years ago

  • Add missing width and height definitions (#302).
  • Fix incorrect behavior of viewMode: 2 (#304).
  • Fix the bug of multiple starts (#306).
  • Remove browser field from the package.json file (#307).
cropperjs - v1.3.0

Published by fengyuanchen over 6 years ago

  • Add type definition files for TypeScript.
  • Enhance the preview option to support Array and NodeList.
  • Fix incorrect cropped canvas sizes when max/min sizes provided.
cropperjs - v1.2.2

Published by fengyuanchen almost 7 years ago

  • Fix incorrect image natural sizes in iOS Safari (#279).
cropperjs - v1.2.1

Published by fengyuanchen almost 7 years ago

  • Add style field to package.json.
  • Fix size error when load SVG image (#256).
cropperjs - v1.2.0

Published by fengyuanchen almost 7 years ago

  • Allow to set the pivot of zoom (#144).
  • Fixed a bug of rotation (#260).
cropperjs - v1.1.3

Published by fengyuanchen almost 7 years ago

  • Fixed a bug of render when disable one of rotatable and scalable options (#241).
cropperjs - v1.1.2

Published by fengyuanchen about 7 years ago

  • Normalize related decimal numbers when crop an image with canvas.
cropperjs - v1.1.1

Published by fengyuanchen about 7 years ago

  • Supports to load in node environment (#237).
  • Fixed a bug of event binding (#238).
cropperjs - v1.1.0

Published by fengyuanchen about 7 years ago

  • Added 4 new options to getCroppedCanvas method: minWidth, minHeight, maxWidth and maxHeight.
  • Enhanced image scaling: the scaleX and scaleY values should only be 1 or -1 before, but now they can be any numbers.
  • Improved crop box resizing behaviour in the northeast, northwest, southeast and southwest directions. (#222).
cropperjs - v1.0.0

Published by fengyuanchen about 7 years ago

  • Fixed a bug of zoom out after cleared the crop box in view mode 1, 2 and 3 (#209).
  • Fixed a bug of crop box resizing (#222).
cropperjs - v1.0.0-rc.3

Published by fengyuanchen over 7 years ago

  • Added two new options (imageSmoothingEnabled and imageSmoothingQuality) to getCroppedCanvas method.
  • Fixed a bug of RegExp using (#195 by @arusakov).
Package Rankings
Top 0.43% on Npmjs.org
Badges
Extracted from project README
Downloads Version Gzip Size
Related Projects