Hi dev!
I'm on a project, where I need to let the user crop and upload images.
To do the cropping part, I use react-cropper.
My issue is that on chrome, the dataURL limit is 65529 pixels.
If I try to use canvas.getDataURL()
on more than 65529 px, it results on a transparent image.
On the client, it's not a problem, since I can display a preview with a reduced size.
To send the fullSize cropped image on the server, I use canvas.toBlob()
.
But even there, I get a transparent image...
How can I send a High Quality canvas ( max 1920x1080 ) as an image to the server ?
Thanks to the ones who will take the time to answer me ! :)