html2canvas image size

FAQ | html2canvas From there, you can use the toDataURL method of the Canvas API to get a Base 64-encoded version of … This is one of the two properties, the other being HTMLCanvasElement.height, that controls the size of the canvas. Here we have provided the document.body for full-page, this can also be used with any part of the HTML page using selectors. Definition and Usage.