4 ms·
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
by zmmmmm 11y 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.
- hansolo669 11y agoYou can save out a <canvas> to png quite easily: canvas.toDataURL();
- zmmmmm 11y agoOh, 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.
- espadrine 11y agoWe could make an HTML-Canvas-compliant library that renders SVG. In fact, I already enabled one: https://github.com/Automattic/node-canvas https://github.com/Automattic/node-canvas