I'm making an application that renders a collage of images and then allows the user to download the collage. The PHP portion is contained within an html div whose id = 'chart'. My problem is that I'm unable to download the div contents. I tried using the html2canvas library and all I get is a white block printed on the screen. I'm using Chrome if that helps.
Here is the function that is called when the user clicks the Save Image button:
function saveimg()
{
html2canvas(document.querySelector("#chart")).then(canvas => {
document.body.appendChild(canvas)
});
}
Here are the actual div contents: