place_image
Place another uploaded photo into an open photo as a NEW LAYER (compositing). source is an upload handle "upload:" from request_upload (or the name of one of your uploads); a built-in sample photo listed by inspect what=uploads also works. Optional x, y, width, height, name and position work as for layer op=create. For a cut-out: place, then select_with_ai target=subject with that layer, then layer_mask op=create from the channel. If the file holds several pictures (a multi-page TIFF), only ONE is placed (not a flattened composite). On this server the placed layer's scaled box must stay within the workspace's pixel limit (less at a higher bit depth), and a photo's layers together within its layer limit. Uploads and open photos belong to this server; a photo opened through another Editmamei connector stays with that connector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | The new layer's ABSOLUTE horizontal offset in document pixels (not a delta). | |
| y | No | The new layer's ABSOLUTE vertical offset in document pixels (not a delta). | |
| name | No | The new layer's name. Defaults to the source file's own base filename. Every case enforces a unique name, suffixing " 2", " 3", ... if the name is already taken. | |
| image | Yes | Image id, as returned by open_photo. | |
| width | No | Scale the placed layer to this width. With height, stretches to exactly that box. Alone, height is derived to keep the source file's own aspect ratio. Omit both to place at the source file's natural size. | |
| height | No | Scale the placed layer to this height. See width. | |
| source | Yes | "upload:<upload_id>" (the name of one of your uploads also works). | |
| position | No | Index within the target parent's (or top-level) stack, 0 = topmost. | |
| parent_group | No | The group layer_id to insert the new layer into (omit for top-level). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | ||
| width | No | ||
| height | No | ||
| layer_id | No | ||
| parent_group | No | ||
| baked_filters | No | Names of the placed layer's own live filters that were baked into its pixels before placing. Omitted when the source layer had none. |