Skip to main content
Glama

Export Image

photopea_export_image

Save 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
NameRequiredDescriptionDefault
formatYesOutput format: 'png' for lossless, 'jpg' for compressed photos, 'webp' for web, 'psd' for Photoshop, 'svg' for vector
qualityNoCompression quality for JPG format only (1 = smallest file, 100 = best quality). Ignored for other formats.
outputPathYesAbsolute local file path where the exported file will be saved (e.g. /Users/me/output.png)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attalla1/photopea-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server