Krita Get Canvas
krita_get_canvasExport the current Krita canvas to PNG, with options for filename, max side, and base64 output for direct decoding.
Instructions
Export the current Krita canvas to PNG (plugin output dir).
as_base64=true returns the PNG bytes as a plain text png_base64 field for callers that decode/write themselves; otherwise returns the plugin result including the exported path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | canvas.png | |
| max_side | No | ||
| as_base64 | No |