export_photo
Write the finished photo: every live filter is baked in and ALL metadata (EXIF, XMP, IPTC, GPS, thumbnail) is stripped. jpg, png, webp and tiff are flattened. psd keeps the layers (masks, opacity, blend modes, groups) for finishing in Photoshop or another editor: text becomes pixels, a group carrying its own filter is merged into one layer, and the result lists layers that may blend slightly differently in Photoshop. A PSD is large (about 50 MB per full-size layer on a 24 MP photo), and a download here is capped at 100 MiB. It is for finishing elsewhere: open_photo does not take a PSD. Returns a download_url (valid 24 hours) plus a preview of what was exported. The link is for the user, and also downloads with a plain GET (e.g. curl -sS -o <dest> <download_url>). Transparency is flattened onto white unless keep_alpha is true (png or webp only), which keeps it, e.g. for a cut-out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id, as returned by open_photo. | |
| format | No | Output format. | jpg |
| quality | No | JPEG/WebP quality, 1-100 (higher = better/larger). Ignored for png/tiff. WebP itself accepts 0 too, but JPEG's own bound is 1-100, so this schema uses the tighter bound. | |
| filename | No | Optional name for the downloaded file, e.g. "harbour-warm". The extension is added for you; anything but letters, digits, dot, dash and underscore is replaced. | |
| lossless | No | WebP only: lossless encoding. Ignored for other formats. | |
| bit_depth | No | PNG/TIFF/PSD only: output bit depth. JPEG/WebP are always 8-bit. | |
| keep_alpha | No | PNG/WebP only: keep transparency. The visible layers are merged onto a transparent canvas, so areas no layer covers (a cut-out, say) stay transparent. Default false flattens onto white. Refused for JPEG and TIFF. | |
| png_compression | No | PNG only: compression level, 0 (fastest, largest) to 9 (slowest, smallest). The default is lower than the maximum because level 9 is far slower for negligible size gain on a typical photo. Ignored for other formats. | |
| tiff_compression | No | TIFF only: compression scheme (lzw and adobe_deflate are lossless; jpeg is lossy). Ignored for other formats. | none |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| layers | No | psd only: layers in the file, groups included. | |
| filename | No | ||
| expires_at | No | ||
| download_url | No | ||
| merged_groups | No | psd only: groups merged into one layer to keep their filter. | |
| rasterized_text | No | psd only: text layers written as pixels. | |
| may_blend_differently | No | psd only: visible layers below 100% opacity or with a blend mode, which Photoshop may render slightly differently. |