Krita Scale Image
krita_scale_imageResize the entire Krita image to new pixel dimensions using bilinear, nearest-neighbor, or Lanczos3 resampling while preserving current resolution when xres/yres are zero.
Instructions
Scale the whole image to new pixel dimensions (resampling strategy: Bilinear | NearestNeighbor | Lanczos3 ...). xres/yres 0 keeps the current resolution.
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": {
"width": "<width>",
"height": "<height>"
},
"name": "krita_scale_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xres | No | ||
| yres | No | ||
| width | Yes | ||
| height | Yes | ||
| strategy | No | Bilinear |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||