I've created a little tool that ends up adding a canvas element to the DOM. I'm unable to usetoBlob or toDataURL as the canvas is (apparently) tainted, producing the following error (in chromium)
Uncaught DOMException: Failed to execute 'toBlob' on 'HTMLCanvasElement': Tainted canvases may not be exported
. It errors in the same way with the toDataUrl method.
I'm not sure why this happens, but I've checked and it seems to be something unresolved within the library I'm using. So, is there any way to convert the canvas to an image without using toBlob/toDataURL? Please let me know if further information would be beneficial. Thank you all so much.