I am using some image cropping plugin that returning a long base 64 URL which is hard to decode and when I am try its returning some long character which are data:image/png;base64
, then some long string
Here what I made
JsFiddle
<script type="text/javascript">
var src = $('#img1').attr('src');
$("#image").val(src);
</script>
What I want is the URL of that image source in input field with original name and extension.