Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exporting Vector Graphics from HTML5 Canvas

I'm curious if that's possible? I'm interested in building a vector drawing app within HTML5 that has the ability to save as vector, and not just JPG/PNG/BMP.

Thanks.

like image 229
Gary Simon Avatar asked Jun 12 '26 22:06

Gary Simon


1 Answers

No, it's not possible. After the drawing operations are complete all you're left with on the canvas are a bunch of pixels. You'd have to retain all the drawing options and then use them to create a separate vector drawing. If you want to save as a vector, why not create as a vector?

like image 183
robertc Avatar answered Jun 15 '26 13:06

robertc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!