Blank PNG / Tainted canvases may not be exported (not using images)
问题 I am trying to export a fairly simple html to canvas and then png. To do so, I am using rasterizeHTML (http://cburgmer.github.io/rasterizeHTML.js/). The problem that I am facing is that I get a warning like if I was loading an external image/resource, but I am not. This is what I have tried: HTML: <canvas height="500" width="500" id="rasterizer"></canvas> Javascript var canvas=document.getElementById("rasterizer"); rasterizeHTML.drawHTML('<div width="300px" height="300px" > <div style="width: