@wakuwaku/cropper-js

1.0.7 • Public • Published

1PACVietnam Cropper js

Purpose

  1. Custom croppie. and fix rotate image when loaded.
  2. Using self-coding to mapping with out project.
  3. Seperate code making project minimal.

Dependencies

  1. croppie - 2.6.4.
  2. exif-js - 2.2.1.

Usage

  1. Structure html must follow

  2. Install @wakuwaku/cropper-js

  npm install @wakuwaku/cropper-js
  1. Usage
  import 'Cropper' from '@wakuwaku/cropper-js'
  const formAvatar = document.querySelector('.js-input-avatar')
  if (formAvatar) new Cropper()._initCroppie()
  1. Default options options, default options

For further information about these options. Visit here.

Result

options, default options

Package Sidebar

Install

npm i @wakuwaku/cropper-js

Weekly Downloads

3

Version

1.0.7

License

ISC

Unpacked Size

359 kB

Total Files

7

Last publish

Collaborators

  • wakuwaku