Get Preview
photopea_get_previewReturns a downscaled PNG snapshot of the active document without modifying it, so you can visually check layout, colors, and text before exporting.
Instructions
See the active document: returns a PNG snapshot, downscaled to maxSize, so you can check layout, colors and text visually. The document is not modified. Call it after visual changes, before exporting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxSize | No | Longest side of the preview in pixels; smaller documents are not upscaled |