Scale image
gimp_resize_imageScales an entire GIMP image and all its layers to a specified width and height, resampling pixels with selectable interpolation in one undoable step.
Instructions
Scale the whole image and every layer to width x height pixels (layer sizes and offsets scale proportionally). Lossy: pixels are resampled with the given interpolation. One undo step.
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>",
"width": "<width>",
"height": "<height>"
},
"name": "gimp_resize_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id from gimp_status, e.g. 'image:1@a1b2c3d4'. | |
| width | Yes | Pixels. | |
| height | Yes | Pixels. | |
| interpolation | No | Resampling: none (nearest neighbour, hard edges), linear, cubic, nohalo, lohalo. | cubic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirty | Yes | ||
| image | Yes | ||
| width | Yes | ||
| height | Yes |