php port

Post about projects that use Inkscape for web design.
tortoise

php port

Postby tortoise » Fri Feb 15, 2008 11:56 am

Hi!
Im having a though time finding an system INDEPENDEND way to export svg files to png.
So I ended up with the (really stupid)Idea to port the export function of Inscape to php.
Anyone got an better solution?
Or an idea where to look in the Api?
Id be gratefull for ANY hint/sugestion
thx4help
PS:looking up google and the forum didn´t help, but if you have any suggestions where to find a matching thread
(or even a good keyword to look 4) you could help me alot

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

Re: php port

Postby microUgly » Fri Feb 15, 2008 12:12 pm

tortoise wrote:Im having a though time finding an system INDEPENDEND way to export svg files to png.
…
Anyone got an better solution?

If by "system independent" you mean web-based, you'll find ImageMagick supports coverting SVG's to PNG and is available on most web servers. You can use PHP to interface to it. I believe it's impossible to use PHP to create binary image files (i.e. PNG), without ImageMagick or the GD library, as you may have intended.

Note that SVG, like HTML, has varying support across pretty much all renderers - meaning if you draw something with Inkscape then convert it to PNG with ImageMagick it may look different.

User avatar
aho
Posts: 180
Joined: Sun Nov 04, 2007 9:51 am
Contact:

Re: php port

Postby aho » Fri Feb 15, 2008 1:23 pm

Batik is so far the most feature complete SVG renderer. It's open source (Apache License) and written in Java.

tortoise

Re: php port

Postby tortoise » Fri Feb 15, 2008 8:16 pm

great :mrgreen:
thats exactly what I need. It is pointless to write system independant aps
(that CAN be used for web based applications ;) ) if you use external system dependant tools


Return to “Inkscape & the Web”