Re: [Gimp-developer] Exporting Vectors to a SVG file
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 -><- ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Exporting Vectors to a SVG file
> >Maybe these ones ? > >http://developer.gimp.org/api/2.0/app/app-GimpVectors-export.html > > Those functions are only available from within the GIMP program > itself, not from plug-ins. That's what I thought. Just to make sure, it's the same for all "Gimp Application" functions at the API: none can be used to develop plug-ins, isn't it? > If you need this, probably the best thing to do, to start > with, is to file an enhancement request, using Bugzilla. done: http://bugzilla.gnome.org/show_bug.cgi?id=497159 It's my first one, sorry If I didn't cope with bug-report-standards, I did my best. > Assuming there isn't any problem, it shouldn't take more than > a few days to get this done That would be great! -- Lionel Tarazón Alcocer PRHLT - UPV - Spain - This mail sent through IMP: http://horde.org/imp/ ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Exporting Vectors to a SVG file
>Maybe these ones ? >http://developer.gimp.org/api/2.0/app/app-GimpVectors-export.html Those functions are only available from within the GIMP program itself, not from plug-ins. -- Bill __ __ __ __ Sent via the CNPRC Email system at primate.ucdavis.edu ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Exporting Vectors to a SVG file
Hi, > 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? Maybe these ones ? http://developer.gimp.org/api/2.0/app/app-GimpVectors-export.html Carlo ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Exporting Vectors to a SVG file
From: Lionel Tarazon Alcocer <[EMAIL PROTECTED]> > >Is there a function which exports paths/vectors to a SVG file or string? No, but it would be easy to add, since the functionality exists in the core. If you need this, probably the best thing to do, to start with, is to file an enhancement request, using Bugzilla. Assuming there isn't any problem, it shouldn't take more than a few days to get this done -- the main issue will probably be to make sure to get the right name and API for the functions. -- Bill __ __ __ __ Sent via the CNPRC Email system at primate.ucdavis.edu ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Exporting Vectors to a SVG file
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 -- Lionel Tarazón Alcocer PRHLT - UPV - This mail sent through IMP: http://horde.org/imp/ ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer