/** // from https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#examples // Adds a blank image const dataBlob = document .querySelector("#scene-container") .firstChild.toBlob((blob) => { const newImg = document.createElement("img"); const url = URL.createObjectURL(blob); newImg.onload = () => { // no longer need to read the blob so it's revoked URL.revokeObjectURL(url); }; newImg.src = url; document.body.appendChild(newImg); }); **/