I am using HTML 5 svg tag to render some graphical objects. What I need is a way to export the drawn graphics into a file. I know that the good old "canvas" tag can do that as simple as:
var img = myCanvas.toDataURL("image/png");
So my question is simple - Can I do something similar with the svg tag or is there any way to convert the svg to canvas so that i can export the canvas?
Thanks!
PS: I have many reasons and constraints to use svg tag over canvas, so changing my implementation is not an option here.