Place Image
photopea_place_imagePlace images from URLs or local paths into active Photopea documents as new layers. Resize while preserving aspect ratio and position using x/y coordinates.
Instructions
Place an image into the active document from a URL or local file path. Creates a new layer with the placed image as the active layer. Use width/height to resize while preserving aspect ratio, or x/y to position the layer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | URL or absolute local file path of the image to place | |
| x | No | X position offset in pixels from the left edge | |
| y | No | Y position offset in pixels from the top edge | |
| width | No | Resize to this width in pixels (preserves aspect ratio if only one dimension is set) | |
| height | No | Resize to this height in pixels (preserves aspect ratio if only one dimension is set) | |
| name | No | Display name for the placed layer in the layers panel |