Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 571 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 571 Bytes

iCropper

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

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

Usage

var ic = new ICropper(
	'cropperContainer'    //Container id
	,{
		keepSquare: true    //Keep cropper area  square or rectangle
		,image: 'demo.png'
		,preview: [
				'previewSmall'  //Preview node id
		]
});
//use bindPreview to dynamically add preview nodes
ic.bindPreview('previewBig');

======= Script released under the MIT license.