Seek for an SVG to PNG library

Want to discuss something with the Inkscape community that doesn't relate to Inkscape? Discuss it here.
User avatar
Hibou57
Posts: 29
Joined: Sat Jan 17, 2009 10:57 pm
Contact:

Seek for an SVG to PNG library

Postby Hibou57 » Wed Sep 01, 2010 10:29 am

Hi all,

I wanted to know if some one ever heard of something I am looking for : an SVG to PNG convertion library under BSD license.

I guess this may not exist, as stuffs like handling fonts, text drawing and etc. are likely to be not a peace of cake. However, I am just asking about it, if ever someone ever heard about such a thing.

I do not know at all about Inkscape internals. Does Inkscape uses such a kind of library internally as an example ?

Have a nice day :)

Yannick

User avatar
Hibou57
Posts: 29
Joined: Sat Jan 17, 2009 10:57 pm
Contact:

Re: Seek for an SVG to PNG library

Postby Hibou57 » Tue Feb 01, 2011 7:14 pm

Up Image

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Seek for an SVG to PNG library

Postby microUgly » Tue Feb 01, 2011 8:45 pm

There's Batik but it's Java - http://xmlgraphics.apache.org/batik/

I also assume it's under an Apache License.

User avatar
Hibou57
Posts: 29
Joined: Sat Jan 17, 2009 10:57 pm
Contact:

Re: Seek for an SVG to PNG library

Postby Hibou57 » Tue Feb 01, 2011 11:41 pm

Thanks for the point MicroUgly, this may be of interest for other readers in this forum, but not me: I was seeking for a binary and standalone library (preferably with a C or Pascal ABI for easier binding). Well, I may just left this personal project in a pending status for more time (was something dealing with UML and similar graphical formal languages).

User avatar
fenixproductions
Posts: 9
Joined: Mon Jan 26, 2009 9:42 am
Location: London
Contact:

Re: Seek for an SVG to PNG library

Postby fenixproductions » Thu Feb 10, 2011 10:30 am

@Hibou57
Take a look for rsvg for Windows:
http://ftp.gnome.org/pub/gnome/binaries ... rsvg/2.32/

You will also need to find rsvg-convert.exe application (from dev package). It's LGPL but may be enough.

User avatar
Hibou57
Posts: 29
Joined: Sat Jan 17, 2009 10:57 pm
Contact:

Re: Seek for an SVG to PNG library

Postby Hibou57 » Fri Feb 11, 2011 8:17 am

fenixproductions wrote:@Hibou57
Take a look for rsvg for Windows:
http://ftp.gnome.org/pub/gnome/binaries ... rsvg/2.32/

You will also need to find rsvg-convert.exe application (from dev package). It's LGPL but may be enough.

I could test “rsvg-convert” on Windows with some SVG files, and was surprised : this really works. I though this would just work on very simple files or will crash; no, this works fine.

That's a good track, I will study it some later days.

Was lucky you were there :)

This is something I was looking for to draw diagrams for which graphviz was not really OK (SVG is more universal and flexible).


Return to “Off topic”