Loading...
Loading...
Command-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow. Designed for AI agents and pow...
npx skill4agent add hkuds/cli-anything cli-anything-gimppip install cli-anything-gimpdraw# Show help
cli-anything-gimp --help
# Start interactive REPL mode
cli-anything-gimp
# Create a new project
cli-anything-gimp project new -o project.json
# Run with JSON output (for agent consumption)
cli-anything-gimp --json project info -p project.jsoncli-anything-gimp
# Enter commands interactively with tab-completion and history| Command | Description |
|---|---|
| Create a new project |
| Open an existing project |
| Save the current project |
| Show project information |
| List available canvas profiles |
| Print raw project JSON |
| Command | Description |
|---|---|
| Create a new blank layer |
| Add a layer from an image file |
| List all layers |
| Remove a layer by index |
| Duplicate a layer |
| Move a layer to a new position |
| Set a layer property (name, opacity, visible, mode, offset_x, offset_y); negative offsets are accepted naturally |
| Flatten all visible layers |
| Merge a layer with the one below it |
| Command | Description |
|---|---|
| Show canvas information |
| Resize the canvas (without scaling content) |
| Scale the canvas and all content proportionally |
| Crop the canvas to a rectangle |
| Set the canvas color mode |
| Set the canvas DPI |
| Command | Description |
|---|---|
| List all available filters |
| Show details about a filter |
| Add a filter to a layer |
| Remove a filter by index |
| Set a filter parameter |
| List filters on a layer |
| Command | Description |
|---|---|
| Analyze an image file |
| List media files referenced in the project |
| Check that all referenced media files exist |
| Show histogram analysis of an image |
| Command | Description |
|---|---|
| List export presets |
| Show preset details |
| Render the project to an image file; deferred draw ops are applied at render time |
| Command | Description |
|---|---|
| Show session status |
| Undo the last operation |
| Redo the last undone operation |
| Show undo history |
| Command | Description |
|---|---|
| Draw text on a layer (by converting it to a text layer) |
| Draw a rectangle (stored as drawing operation) |
cli-anything-gimp project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-gimp --json project new -o myproject.jsoncli-anything-gimp
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigationcli-anything-gimp --project myproject.json export render output.png --overwritecli-anything-gimp --project poster.gimp-cli.json layer set 0 offset_x -48
cli-anything-gimp --project poster.gimp-cli.json layer set 0 offset_y 24
cli-anything-gimp --project poster.gimp-cli.json draw text --layer 0 --text "Launch Night" --x 96 --y 120 --size 72 --color "#f6f1e8"
cli-anything-gimp --project poster.gimp-cli.json export render output.png --overwritelayer setoffset_xoffset_ydraw textdraw rect--json# Human output
cli-anything-gimp project info -p project.json
# JSON output for agents
cli-anything-gimp --json project info -p project.json--json