I'm trying to save a canvas as a image, which i then download. And it's working - using html2canvas.
However the quality is not acceptable, images inside the canvas is pixelated and text is in pretty bad condition as well.
Anyone know of a alternative to html2canvas which support higher DPI / can give me a better result.
html2canvas(target, {
onrendered: function(canvas) {
var data = canvas.toDataURL("image/png", 1);
download(data, "Graph.png", "image/png");
//window.open(data); // while testing, instead of download.
}
});