[Image-SIG] Auto level with PIL?

Stefano Masini stefano at pragma2000.com
Thu Sep 8 07:10:50 CEST 2005


On 9/8/05, Joao S. O. Bueno Calligaris <gwidion at mpc.com.br> wrote:
> The cenonicakl reference is still the aparently out of date page at:
> 
> www.jamesh.id.au/software/pygimp/

This looks like a way to write python scripts that run _within_ Gimp.
In fact, the documentation says the system also takes care of details
like the gui, and all seems like running interactively.

Chris on the other hand seems like not wanting such an interactive
approach. Or, to say it differently, if he's ok with triggering the
thing with mouse clicks, why doesn't he simply create a Photoshop
action?

So, if what he really needs is batch processing of images, maybe out
of a crontab or driven by the click on a web interface, he can't
really use an interactive tool.

If PIL is not enough, or simply he does not want to go as low level as
reimplementing the algorithms himself, he could use gimp in batch
mode. I found this tutorial talking about it:
http://gimp.org/tutorials/Basic_Batch/

In the example it actually applies an unsharp mask to a bunch of
images in a directory, so probably something very similar to what
Chris needs to do.

Scriptfu can be quite powerful because it's basically a program
written in the Scheme language. But it's not python... :( I don't know
if pygimp allows batch processing as well. If it doesn't, then I guess
the only chance would be to use python to generate scheme code
snippets on the fly and feed them to gimp.

cheers,
stefano


More information about the Image-SIG mailing list