Open jacondaloas opened 8 years ago
<script> $(function() { $('.image-editor').cropit({imageState: { src: 'http://wallpapercave.com/wp/dOKlswl.jpg', }, }); $('.image-editor').cropit('previewSize', { width: 500, height: 150 }); $('form').submit(function(e) { e.preventDefault(); var imageData = $('.image-editor').cropit('export',{ type: 'image/jpeg', quality: .6 }); var hidden = $('.hidden-image-data').val(imageData); var form = $('form'); var formData = new FormData(form[0]); $.ajax({ type: "POST", processData: false, contentType: false, url: "i.php", data: formData, success: function(data){ alert(data); } }) }); }); </script>
already included but the address site.ru/img.jpg will not ship
already earned, thanks for the plug, waiting for the chance to turn