krita_get_region_preview
Renders a rectangular area of a Krita canvas as an inline PNG preview with given x, y, width, height. For inspecting a specific crop while limiting output to 1024 pixels.
Instructions
Inspect a settled rectangular canvas crop as an inline PNG with image-space offsets. Region must be in canvas and at most 16 megapixels; output edge is at most 1024. Poll pending previews with krita_get_operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| max_edge | No | ||
| document_id | Yes | ||
| instance_id | Yes |