[Gimp-developer] Exporting Vectors to a SVG file
Joao S. O. Bueno
gwidion at mpc.com.br
Fri Nov 16 07:43:43 PST 2007
A Thursday 15 November 2007 14:27:30, Lionel Tarazon Alcocer escreveu:
> I am developing a plug-in which makes use of SVG files to store Gimp
> Vectors. The Import functionality is quite straight-on due to the
> gimp_vectors_import_from_file(), but I haven't found a function which works
> the other way around.
>
> Is there a function which exports paths/vectors to a SVG file or string?
>
> Given that this is quite straight-on at the GIMP GUI (right-button over a
> path, Export Path), I was wondering if I had missed it at the API.
>
> thanks
Hi,
I have a python script that does this.
It has not been updated for the new vectors API in gimp 2.4 however.
Anyway you can take a look at a simple translation of gimp bezier curves to
svg equivalents, without using gimp internals:
http://www.pion.com.br/~gwidion/paths.tar.gz
js
-><-
More information about the Gimp-developer
mailing list