A
A
Anton Peat2014-07-23 14:55:02
Canvas
Anton Peat, 2014-07-23 14:55:02

How to fix "Tainted canvases may not be exported"?

SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
There was a similar question, but I did not understand how to fix it.
I have a js code and a picture (used in the canvas) on my computer in the same folder, but I can’t save the entire canvas (I’m testing from a computer).
By chance, it's not that I'm running the page (code) from the computer and opening the file from the hosting will everything be fine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Lobanov, 2014-07-23
@id_aspin

As far as I remember, yes, that's exactly the point. Security error when using local files.
Why don't you check hosting? Finally, upload the images to a free image hosting site and the code in jsfiddle or codepen and check it out.

A
Anton Peat, 2014-07-23
@id_aspin

Thanks, I'll do that ... I was just afraid that the process itself would take a long time (registration, etc.). Trust without verification - much easier)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question