Skip to content

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

Notifications You must be signed in to change notification settings

IvanMartynenko/truecropper

Repository files navigation

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. →

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published