Export Image
photopea_export_imageSave active Photopea documents to your local computer as PNG, JPG, WebP, PSD, or SVG files. Specify output paths and quality settings to export flattened images directly to your filesystem.
Instructions
Export the active document to a file and save it to the local filesystem. The entire document is flattened and exported in the chosen format. Use create_document or open_file to set up the document before exporting.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Output format: 'png' for lossless, 'jpg' for compressed photos, 'webp' for web, 'psd' for Photoshop, 'svg' for vector | |
| quality | No | Compression quality for JPG format only (1 = smallest file, 100 = best quality). Ignored for other formats. | |
| outputPath | Yes | Absolute local file path where the exported file will be saved (e.g. /Users/me/output.png) |