Krita Get Pixels
krita_get_pixelsCapture a Krita canvas region as a PNG image to inspect or export pixel art. Returns the file path or base64 bytes for viewing.
Instructions
Export a canvas region as PNG (merged projection; layer=None reads the whole composite). width/height 0 = to the canvas edge. Returns the file path; as_base64 also returns the PNG bytes as a text field. Pair with px_view_image / read_image to LOOK at the canvas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| layer | No | ||
| width | No | ||
| height | No | ||
| as_base64 | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||