Export vector graphics from HTML5 canvas
I'm curious if this is possible? I am interested in making a vector drawing application in HTML5 that has the ability to save as a vector, not just JPG / PNG / BMP.
Thank.
+3
Gary simon
source
to share
2 answers
Try fabric.js .
It draws stuff to Canvas and has SVG import / export.
It handles "objects", general shapes and SVG paths. The full SVG standard (like fonts) is not supported, but perhaps you only need to use a subset of it.
+2
Aditya bhatt
source
to share
No, It is Immpossible. After the drawing operations are complete, all that's left on canvas
is a bunch of pixels. You will need to save all the drawing parameters and then use them to create a separate vector drawing. If you want to save as a vector, why not create as a vector ?
+3
robertc
source
to share