I keep getting this error "Uncaught TypeError: Cannot read property 'toBlob' of null" when I try to save my cropped image. I have a button to allow users save the cropped image after making their selection.
Expected behavior
I expected the cropped image to be submitted to my server through ajax
Minimal reproduction of the problem with instructions
`function saveCrop(){
var img = document.querySelector("#banner_image_preview");
var cropper = new Cropper(img);
I'm submitting a...
Current behavior
I keep getting this error "Uncaught TypeError: Cannot read property 'toBlob' of null" when I try to save my cropped image. I have a button to allow users save the cropped image after making their selection.
Expected behavior
I expected the cropped image to be submitted to my server through ajax
Minimal reproduction of the problem with instructions
`function saveCrop(){ var img = document.querySelector("#banner_image_preview"); var cropper = new Cropper(img);
}`
What is the motivation / use case for changing the behavior?
Environment