[Image-SIG] Using GIMP filters within a Python script

Joao S. O. Bueno gwidion at mpc.com.br
Sat Nov 29 05:52:23 CET 2008

On Saturday 29 November 2008, Matthew Nuzum wrote:
> 2008/11/27 Roy H. Han <rhh2109 at columbia.edu>:
> > 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

best wishes.


> 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

More information about the Image-SIG mailing list