gimp_run_python
Execute Python scripts inside GIMP to automate image editing, access Gimp/Gegl/GLib APIs, and persist state across calls. Wrap operations in a single undo step by passing an image_id.
Instructions
Run Python inside GIMP. Gimp, Gegl, Gio, GLib and helpers image_by_id/item_by_id/make_color are available; the namespace persists between calls. Returns stdout plus the expression value or result. Pass image_id to wrap the call in one undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| image_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||