How to hook to finishCropping & finishUploading events
Developers can use either finishCropping or finishedUploading option as follow:
jQuery(document).ready(function(){
jQuery("#tiny-img").closify({
progress:true,
quality:3,
multiFilesMode:true,
finishUploading:finishedUploading,
finishCropping:finishedCropping,
});
});
function finishedUploading(result)
{
console.log(result.imgSrc);
}
function finishedCropping(result)
{
console.log(result.imgSrc);
}
Note that finishedUploading will give you the path of the uploaded image before it is been cropped, wheras finishedCropping will give you the path of cropped image.