canvas2image
canvas2image copied to clipboard
No file extension
I thought I can download canvas image with its extension... But it only gives me "download" as a file. Such thing I can achieve simply by this codes:
var image = document.getElementsByTagName("canvas")[0].toDataURL("image/png").replace("image/png", "image/octet-stream"); window.location.href=image;
https://github.com/hongru/canvas2image/issues/26
I created a fork, that uses ES6 modules and fixes this issue: https://github.com/TessyPowder/canvas2image-2