We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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;
The text was updated successfully, but these errors were encountered:
#26
Sorry, something went wrong.
I created a fork, that uses ES6 modules and fixes this issue: https://github.com/TessyPowder/canvas2image-2
No branches or pull requests
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;
The text was updated successfully, but these errors were encountered: