Is it possible to access the img element outside of the createThumbnail function? That's the challenge I'm facing at the moment.
Custom Function
function generateThumbnail(){
canvas.deactivateAll().renderAll();
html2canvas($('#chartdiv'), {
onrendered: function(canvas) {
var image = canvas.toDataURL("image/png"),
element = document.getElementById("thumbnail_img");
element.src = image;
}
});
}