Export image
snipaya_exportExport canvas or selected elements as PNG/JPG images, writing to a specified path or returning the image directly.
Instructions
Export the canvas (or given ids) as PNG or JPG. With path, writes the file (absolute path, matching extension, refuses to overwrite unless overwrite is true); without path, returns the image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Export only these elements. Defaults to the whole canvas (or crop). | |
| path | No | Absolute file path to write. Omit to receive the image in the response. | |
| tabId | No | Target tab id. Defaults to the active tab. | |
| format | Yes | ||
| beautify | No | Frame the image on a background. true uses the user’s beautify settings, an object overrides some of them, false turns it off. Omit to follow the user’s setting. | |
| overwrite | No |