I am using fengyuanchen jquery cropper plugin for image manipulation in one of my project. That plugin is intended to download the image to local system after image processing. Actually i want to store the processed image into the server itself rather than downloading it to local system. For that i need to get the URI data of the processed image in a textarea. What modification i had to do in the plugin code to generate the URI data instead of downloading?
There are three files in the project named index.php, cropper.js, and main.js
The download button code in index.php is as follows:
<div class="btn-group btn-group-crop docs-buttons" style="margin-top:10px;">
<a class="btn btn-primary" data-method="getCroppedCanvas" id="download">Generate your Facebook Cover Photo</a>
</div>
The corresponding jquery code snippet which generates the download data in main.js is as follows:
case 'getCroppedCanvas':
if (result) {
// Bootstrap's Modal
if (!$download.hasClass('disabled')) {
$download.attr("href", result.toDataURL('image/jpeg'));
}
}
what modification in this code will generate the URI data?