Skip to content

supnate/icropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iCropper

iCropper is an image cropper written in pure javascript without any library dependency. It aims to be simple, fast and easy to use.

DEMO: http://supnate.github.io/icropper/demo.html

alt tag

Browser support

IE 7+, Chrome, Firefox, Opera, Safari

Usage

var ic = new ICropper(
	'cropperContainer'    //Container id
	,{
		ratio: 1    //Set aspect ratio of the cropping area
		,image: 'demo.png'
		,preview: [
				'previewSmall'  //Preview node id
		]
	}
);
//use bindPreview to dynamically add preview nodes
ic.bindPreview('previewBig');

License

MIT

About

Javascript Image Cropper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published