Export PNG/JPEG
gimp_export_imageExport the visible composite of an image to PNG or JPEG, optionally overwriting existing files without modifying the source image.
Instructions
Export the visible composite of the image to PNG or JPEG (format from the extension). The image itself is not modified. Existing files are only replaced when overwrite=true. Defaults: PNG compression 9, not interlaced; JPEG quality 90, baseline, optimized, transparency flattened on white.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image": "<image>",
"path": "<path>"
},
"name": "gimp_export_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path ending in .png, .jpg or .jpeg. | |
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. | |
| format | No | ||
| overwrite | No | ||
| png_options | No | ||
| jpeg_options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes | Yes | ||
| image | Yes | ||
| width | Yes | ||
| format | Yes | ||
| height | Yes | ||
| options | Yes | Effective encoder options. |