Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

js-cropper

Pure JavaScript image cropper

css, image, crop, ui, component

readme

js-cropper

Quick and easy way to add image cropping functionality to your web application without dependencies

Features

  • Promise API
  • Supports Touch Events
  • Multiple callbacks
  • No dependencies (pure JavaScript code)
  • Excellent Browser support
  • Based on canvas technology
  • Available Zooming (Setting/Resetting/UI input)
  • Exports cropped image in Base64
  • Gets position/zoom in JSON data
  • Sets position/zoom from JSON data
  • Dynamically changing dimensions of cropping area via available public methods
  • Loads image by URL
  • and many others...

Docs

Tests

In order to test this module - run npm test

License

MIT © Denis Kalinichenko

changelog

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[1.0.1] - 2018-02-16

Changed

  • package name

[1.0.0] - 2018-02-16

Removed

  • bower support

[0.1.1] - 2017-02-20

Fixed

  • Zoom Slider should back to default value after updating image

[0.1.0] - 2017-02-10

Added

  • basic module