As I work on setting up an image Cropper, I am obtaining the width and height, X and Y coordinates of the cropped details. With this data, I am able to create a preview image using canvas elements. However, my query is whether it is feasible to save the data returned from HTMLCanvasElement.toDataURL()
or canvas.toBlob()
so that it can be reused across different devices and browsers?
If interested, you can refer to the following link (which utilizes the canvas.toBlob()
method):
https://codesandbox.io/s/72py4jlll6