Closed Esteann closed 6 years ago
[- ] Feature request
Cropper version: v4.0.0 Browser: - Chrome (desktop)
I am trying to download an image after cropping it in the modal : https://github.com/fengyuanchen/cropperjs/blob/master/examples/cropper-in-modal.html
Download button code: $("#download_crop").click(function () { var a = document.createElement('a'); a.href = cropBoxData.toDataURL().replace("image/png", "image/octet-stream"); a.download = 'Capture.png' a.click(); }); But I am getting an error : Error : Uncaught TypeError: cropBoxData.toDataURL is not a function
$("#download_crop").click(function () { var a = document.createElement('a'); a.href = cropBoxData.toDataURL().replace("image/png", "image/octet-stream"); a.download = 'Capture.png' a.click(); });
Error : Uncaught TypeError: cropBoxData.toDataURL is not a function
What's the cropBoxData?
cropBoxData
I'm submitting a...
I am trying to download an image after cropping it in the modal : https://github.com/fengyuanchen/cropperjs/blob/master/examples/cropper-in-modal.html
Download button code:
But I am getting an error :