Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 791 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 791 Bytes

TrueCropper.js

A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.

  • Made only with native, delicious vanilla JS
  • Zero dependencies
  • No z-index, make modals easy
  • Work with real image pixel size
  • Supports touch devices
  • Set results in dataset of image

Try it out in the demo →

Installation

Via NPM:

npm install truecropper

Basic Usage

import TrueCropper from "truecropper";

var cropInstance = new TrueCropper("#imageid", {
  // ...options
});

Note: Don't forget to bundle or include trueCropper.css!

To view the documentation, please check out the demo page. →