I've set up html2canvas so I can edit text and then download that as image and that works great, but the size is limited to the width of its container.
If I set up canvas width and height render becomes that size but it's black. What am I doing wrong?
Here is the JSfiddle with everything working but if you add width and height (currently commented), rendered pictured will get black.
JavaScript
html2canvas(document.getElementById("imagewrap"), {
onrendered: function(canvas) {
canvas.className = "html2canvas";
// canvas.width = "1080";
// canvas.height = "1920";
document.getElementById("canvasWrapper").appendChild(canvas);
var image = canvas.toDataURL("image/png");
document.getElementById("downloadLink").href = image;
},
useCORS: true
});