Hacker News new | ask | show | jobs
by zmmmmm 3985 days ago
I love SVG support because it means you can render something in vector art in the browser which is also downloadable as a file by the user. Drawing stuff in the browser which is then stuck there is cute but lacks an important layer of interoperability with the rest of the computing ecosystem. So here we appear to get the best of all worlds: render to whatever is fastest in the browser but get automatic "export as SVG" for free.
2 comments

We could make an HTML-Canvas-compliant library that renders SVG.

In fact, I already enabled one: https://github.com/Automattic/node-canvas

You can save out a <canvas> to png quite easily: canvas.toDataURL();
Oh, yes, but it's not a vector format, which means you can't make high quality vector drawings that the user can export with it.