photo_collage
Photo Collage — Arrange 2-16 images into a smart-cropped collage with aspect-ratio-aware layouts, named magazine templates, or legacy NxM grids. Output: JPG, PNG, WebP, AVIF. [category: photo]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | Gap between cells in px, 0-100. | |
| files | Yes | 2-16 images — JPG, PNG, WebP, HEIC. The multipart field name is 'files[]' (with brackets). | |
| layout | No | A plain grid, written as columns then rows. | 2x2 |
| quality | No | Output quality; 0 or omitted = engine default. | |
| bg_color | No | 'white', 'black', 'transparent', or hex (#abc/#aabbcc). Unknown values silently become white; jpg output flattens transparency to white. | white |
| template | No | Named template (layout_mode=template), e.g. ig_post_2x2, ig_story_3_vertical, ig_post_5_magazine. Needed when Layout mode is template: there is no default, and a template-mode run with none chosen, or with fewer photos than the template has places for, is refused with the reason. | |
| layout_mode | No | Omit to auto-infer: 'template' present implies template mode, 'layout' implies grid_legacy, otherwise smart. | smart |
| aspect_ratio | No | Output aspect ratio (smart mode). | 1:1 |
| output_width | No | Older name for the setting above. Set the longest side instead; this is only used if that one is left empty. | |
| output_format | No | 'jpeg' is accepted as an alias for jpg. png ignores 'quality' (fixed compression). | jpg |
| output_long_edge | No | Output long edge in px. |