1

Hi I am trying to save to file from canvas, but cannot name the file, this works but saves a file as "download" I would like give it any name. Any help is appreciated, lc.getImage gets image from canvas.

  $('#download_btn').click(function() {
     var image = lc.getImage();
     document.location.href = image.toDataURL("image/png").replace("image/png", "image/octet-stream");
  });
sideroxylon
  • 4,338
  • 1
  • 22
  • 40
Augie C
  • 13
  • 5

0 Answers0