Category: script-fu

script-fu: exporting the same region for different layers

author | 31. Januar 2008

Intro

Gimp offers the ability to run scripts and by that create, manipulate and save images automatically. The language used normally is script-fu, though one could also use perl or (more commonly) python.

In my current project, I have to take pictures of different samples which are partly manipulated (using surface processing). In those pictures I’m mostly interested in three regions:

  • the reflection of light on an untreated surface,
  • the reflection of light on a treated surface,
  • the histogram of the image.

A sample image that i took looks like this:

Sample image for script-fu

The regions I’m interested in are as follows:

rund_1_16_markiert.jpg

I took about 30 pictures (with more to come) and i needed an automated method to copy those regions and save them as new images with an appropriate filename.

Read more »