gimp
Installation
SKILL.md
GIMP Image Automation
Automate GIMP (GNU Image Manipulation Program) workflows using Python-Fu scripting, Script-Fu (Scheme), CLI batch mode, and the libreearth/gimp-mcp server for programmatic image editing.
Direct Control (CLI / API / Scripting)
CLI Batch Mode
# Basic batch processing
gimp -i -b '(batch-command)' -b '(gimp-quit 0)'
# Resize image
gimp -i -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "input.jpg" "input.jpg")))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-image-scale image 800 600)
(gimp-file-save RUN-NONINTERACTIVE image drawable "output.jpg" "output.jpg")
(gimp-image-delete image))' -b '(gimp-quit 0)'