i am trying to use html2canvas to capture images of divs. i have two divs in one dive i have image which i want to capture with some styling but html2canvos download empty image file. in second div i have some text which i want to capture but when i give height and widht in html2canvas it minimise the text in image.
html2canvas($('#front_image')[0], {
scale: 3,
width: 1819,
height: 1311
}).then(function(canvas) {
var a = document.createElement('a');
a.href = canvas.toDataURL("image/png");
$("#front_view_image").val(a.href);
a.download = 'myfile.png';
a.click();
});