I'm developing a webapp to edit photos and trying to download them as adobe illustrator (.ai) file format.
Th code below converts the canvas element to a dataURL, so I can see the compiled image after hitting the url. The url shows it is png format.
var canvas = document.getElementById("myCanvas"); var dataURL = canvas.toDataURL();
And the url looks like this.
Juan Pablo Isaza