working on little cropping images app. i using cropit that. code looks this:
<div id="image-cropper"> <div class="cropit-preview"></div> <input type="range" class="cropit-image-zoom-input" /> <input type="file" class="cropit-image-input" /> <script> $('#image-cropper').cropit(); $('#image-cropper').cropit({ imagestate: { src: { imagesrc } } }); </script> <button class="export">export</button> <script> $('.export').click(function() { var imagedata = $('#image-cropper').cropit('export'); window.open(imagedata); }); </script> </div>
now trying cropped image uploaded on server. using php example. here sort of solution, maybe there simpler solution. or @ least tell should dig more regarding php, ajax etc. these kind of solutions.
thanks in advance!
Comments
Post a Comment