var basic = $('#demo-basic').croppie({
viewport: {
width: 150,
height: 200
}
});
basic.croppie('bind', {
url: 'demo/cat.jpg',
points: [77,469,280,739]
});
//on button click
basic.croppie('result', 'html').then(function(html) {
// html is div (overflow hidden)
// with img positioned inside.
});
$uploadCrop = $('#upload-demo').croppie({
enableExif: true,
viewport: {
width: 200,
height: 200,
type: 'circle'
},
boundary: {
width: 300,
height: 300
}
});
Croppie is supported in the following browsers:
IE9 may be supported, but it isn't tested. If you're able to test it and let us know, please do so on Github.
Croppie was built by Foliotek for use in Foliotek Presentation.
Please submit any issues or questions on Github.
Check out some of our other open source tools: AjaxQ | LTI Tester