4

Does anybody knows some free or not free library for converting svg to raster image (preferably to png).

I see that there are ImageMagic, GraphicMagic, librsvg. But I can't to figure out how to use them or are suitable to my issue. I need to do trasformation programmatically from my code.

dmigous
  • 167
  • 1
  • 3
  • 14

1 Answers1

5

The canonical library to render SVG is librsvg.

You may want to check that out.

try this link ...

its very use full to you..

Sandy8086
  • 653
  • 1
  • 4
  • 14
  • I see that librsvg is so cool but there no documentation on how to use it. As I can see there are in your "link" there are specified only utilities – dmigous Aug 13 '12 at 09:38
  • check this [link](http://librsvg.sourceforge.net/docs/html/index.html) here is manual .go through that and try solve your problem . – Sandy8086 Aug 13 '12 at 09:45
  • @dmigous: I assume you already visited its homepage and its [API docs](http://developer.gnome.org/rsvg/). – Michał Górny Aug 13 '12 at 09:47
  • I had looked at that. But nothing useful there at least about can I do this trasformation or not. – dmigous Aug 13 '12 at 09:59
  • What's the problem ? Documentation says for example that you can render svg to cairo surface. Next you will use cairo `surface.write_to_png`. You can render svg into other buffers - such as GTK+ buffers [and etc](http://developer.gnome.org/rsvg/2.36/rsvg.html). – Agnius Vasiliauskas Aug 13 '12 at 10:47
  • and how to compile or where to get compiled librsvg for windows? – dmigous Aug 13 '12 at 15:41