canvas2image icon indicating copy to clipboard operation
canvas2image copied to clipboard

No file extension

Open habibieamrullah opened this issue 6 years ago • 2 comments

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;

habibieamrullah avatar Jul 11 '18 00:07 habibieamrullah

https://github.com/hongru/canvas2image/issues/26

xiatianlong avatar Nov 18 '18 15:11 xiatianlong

I created a fork, that uses ES6 modules and fixes this issue: https://github.com/TessyPowder/canvas2image-2

JonathanTreffler avatar Aug 02 '20 22:08 JonathanTreffler