Skip to main content
Participant
April 14, 2021
Question

Weird "Tainted canvases may not be exported" issue causing browser security problem

  • April 14, 2021
  • 1 reply
  • 840 views

Hello! I have created 2 banner sets for a client. The first set runs fine off the disk in Chrome. The second does not show up, but when I press F12, I see this error on the second one.

Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
at Function.a.extractFrame (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/libs/1.0.0/createjs.min.js:14:31414)
at new lib.bg (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/baldinis_40k_test_v1.html:209:42)
at new lib.baldinis_40k_test_v1 (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/baldinis_40k_test_v1.html:294:21)
at handleComplete (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/baldinis_40k_test_v1.html:425:15)
at file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/baldinis_40k_test_v1.html:409:52
at a.b._dispatchEvent (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/libs/1.0.0/createjs.min.js:12:4090)
at a.b._dispatchEvent (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/libs/1.0.0/createjs.min.js:12:4158)
at a.b.dispatchEvent (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/libs/1.0.0/createjs.min.js:12:3479)
at a.b._sendComplete (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/libs/1.0.0/createjs.min.js:16:17075)
at a.b._loadNext (file:///D:/Graphic%20Design/Baldini's%20Casino/HTML5%2040K%20Tierriffic/libs/1.0.0/createjs.min.js:17:5292)

 

Both were created the same way, from a new file with no templates or anything. The image assets were imported from files, not pasted in. The second one looks totally identical to the first in terms of code and the way it was exported. I even tried pasting all the keyframe data from #2 into #1 and exporting and that also did not work. Help me Obi Wan Kenobi. You're my only hope.

    This topic has been closed for replies.

    1 reply

    Community Expert
    April 27, 2021

    Make sure you have the later version of adobe animate 21.0.5. there has been some updates to html 5