Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to download image in canvas javascript as named

  var canvas = document.getElementById("mcanvas");
  image = canvas.toDataURL("image/png", 1.0).replace("image/png", "image/octet-stream");
  var link = document.createElement('a');
  link.download = "my-image.png";
  link.href = image;
  link.click();
Source by www.sanwebe.com #
 
PREVIOUS NEXT
Tagged: #download #image #canvas #javascript #named
ADD COMMENT
Topic
Name
9+9 =