简体   繁体   中英

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

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

The GEGL source is here

There are two Python examples, here and there

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM