export_image
Exports flattened Krita images or selected layers to PNG, JPG, WebP, BMP, TIFF, PSD, or ORA in the workspace, with optional region cropping and quality settings for JPG/WebP.
Instructions
Export the flattened image to png/jpg/webp/bmp/tiff/psd/ora in the workspace (format from extension). layer = export only that layer (cropped to its content unless full_canvas). quality = 0-100 for jpg/webp. x/y/width/height = export just that region (e.g. the area to send to an inpainting model).
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": {
"path": "<path>"
},
"name": "export_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| path | Yes | ||
| layer | No | ||
| width | No | ||
| height | No | ||
| quality | No | ||
| full_canvas | No |