Closed simevidas closed 10 years ago
Good Question! I want to use it to render small clippings from a giant svg (build from polygons, -lines and text stored in a database) to multiple raster image formats in a batch job. GraphicsMagick or Cairo doesn't feel right to me because i want to get the same results as I would get in browser. A Browser in contrasr makes perfect SVG to PNG conversation with perfect text support. And with nodejs I am more flexible to put logic into the creation process than with Illustrator or Inkscape (no need to say that its hard to connect Illustrator to a database)
Do you have some ideas?
Ah yes, I see. That's a great use case. PNG fallback of SVG for IE8 will be needed for a few more years. Grunticon is a popular Node tool that provides automated SVG-to-PNG conversations. From what I see, it uses the "svg-to-png" package which in turn uses "phantomjs". Not sure how your tool stacks up against Grunticon in terms of conversion quality. Might be worth checking out.
Could you list one or more use cases for this tool? What can we do with such a Canvas object in Node?