Is there a way to convert GIMP steps to manipulate an image to GEGL function calls?

218 Views Asked by At

I have a set of steps in GIMP that I want to automate in Python. How can I translate what a GIMP tool does to GEGL functions?

This started with me trying to write python scripts that call some GIMP steps (since I want the source code to live in a lambda function) However, I soon found out GIMP runs the python scripts not the other way around.

After more digging and reading I found a post that pointed me to GEGL. After confirming there existed python bindings for GEGL I decided to search for information about their API and how GIMP uses GEGL. Found nothing so far.

The list of steps are more or less:

  1. Curve bends
  2. Gaussian blur
  3. Linear burn
  4. Change saturation
  5. Merging layers
  6. Transforms
1

There are 1 best solutions below

0
On

The GEGL source is here

There are two Python examples, here and there