On Saturday 29 November 2008, Matthew Nuzum wrote: > 2008/11/27 Roy H. Han <[EMAIL PROTECTED]>: > > Is there a way to access the filters available in GIMP to process images > > within Python? > > I see that there is a way to write Python-based plugins for GIMP, but I > > would like to call GIMP filters from Python.
Hi there - You'd have to write a gimp-plug-in that acts like a "listener" bound to a tcp socket, http, named pipe or something, and then initiate gimp-actions in it from an external process. That is either that or starting gimp with no display, passing a script-fu command to call the desired plug-in at each use. (which is what inskcape's xcf import Mathew talks about does) Fortunatellya GIMP "listener" plug-in isin python is nto a hard thing to do., Ihave a nive http implementation of one. Try and download it from http://www.pion.com.br/~gwidion/logo_server.zip best wishes. js -><- > > Hi, don't consider my answer definitive, but I believe there is. I was > looking at the inkscape export to xcf feature and it is apparently a > python script that controls gimp. Unfortunately it's not pure python, > it looks like it's a python script that launches gimp and feeds in > some of gimp's own scripting language (scheme?), but none the less > it's about what you're asking and the code is readily available. > > http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/share/ex >tensions/gimp_xcf.py?view=markup _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig