- var croppicHeaderOptions = {
- doubleZoomControls:false,
- rotateControls:false,
- cropUrl:'/Web_Service/ImageUpload.php',
- cropData:{
- "ID":localStorage.getItem('Id'),
- "token":localStorage.getItem('token')
- },
- customUploadButtonId:'cropContainerHeaderButton',
- modal:false,
- imgEyecandy:true,
- imgEyecandyOpacity:0,
- processInline:true,
- loaderHtml:'<div class="loader bubblingG"><span id="bubblingG_1"></span><span id="bubblingG_2"></span><span id="bubblingG_3"></span></div> ',
- onBeforeImgUpload: function(){ console.log('onBeforeImgUpload') },
- onAfterImgUpload: function(){ console.log('afterImageUpload') },
- onImgDrag: function(){ console.log('onImgDrag') },
- onImgZoom: function(){ console.log('onImgZoom') },
- onBeforeImgCrop: function(){ console.log('onBeforeImgCrop') },
- onAfterImgCrop:function(){
- $.post('SendingData.php',{ID:localStorage.getItem('Id'),token:localStorage.getItem('token'),imgurl:imgUrl,imgx:imgX1,imgy:imgY1,croph:cropH,cropw:cropW},function(){
-
- },'json');
- },
- onError:function(errormessage){ console.log('onError:'+errormessage) }
- }
- var croppic = new Croppic('croppic', croppicHeaderOptions);
-
croppic.net
how can i get values of imgUrl, imgx1, imgy1,cropH and cropW values after the image crop is done,