Stats
Actions
Tags
From gimp
Reference for the GIMP command-line interface — non-interactive batch mode, Script-Fu invocation, console binary, and the differences between GIMP 2.10 and GIMP 3.0. Read this before authoring batch ops or Script-Fu calls.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gimp:gimp-cli-referenceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Binary | Purpose |
| Binary | Purpose |
|---|---|
gimp | Full GUI — avoid for automation |
gimp -i | No interface (no GUI windows), but still loads display libs |
gimp -i -b <expr> | No interface, run a Script-Fu expression then exit (-b - reads from stdin) |
gimp-console (2.10: gimp-console-2.10, 3.0: gimp-console-3.0) | Truly headless — no display libs. Preferred for automation. |
# Run a Script-Fu expression
gimp-console -b '(gimp-message "hello")' -b '(gimp-quit 0)'
# Read Script-Fu from stdin
gimp-console -b - <<'SF'
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "in.png" "in.png"))))
(file-png-save RUN-NONINTERACTIVE image (car (gimp-image-get-active-drawable image))
"out.png" "out" 0 9 1 1 1 1 1)
(gimp-image-delete image))
(gimp-quit 0)
SF
# Flatpak equivalent
flatpak run --command=gimp-console org.gimp.GIMP -b '...' -b '(gimp-quit 0)'
gi).~/.config/GIMP/2.10/ vs ~/.config/GIMP/3.0/.gimp-* PDB calls are stable; some renames in 3.0 (e.g. gimp-image-get-active-drawable → gimp-image-get-selected-drawables returning a vector).(gimp-quit 0) or the process hangs.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin gimp