Add image layer
add_image_layerImports an image file (PNG, JPEG, HEIC, TIFF, WebP) as a new pixel layer in a Compositor project, with placement, size, opacity, blend mode, and layer ordering controls.
Instructions
Imports an image file (PNG, JPEG, HEIC, TIFF, WebP…) as a new pixel layer. The pixels are stored as-is; the placement only sets the layer's transform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Layer name (defaults to the file name) | |
| path | Yes | Path to the .comp project package (a directory ending in .comp) | |
| size | No | Explicit display size in canvas pixels; overrides placement | |
| above | No | Place directly above this layer (id or name) | |
| below | No | Place directly below this layer (id or name) | |
| origin | No | Explicit top-left position in canvas pixels; overrides centering | |
| parent | No | Folder (id or name) to put the layer in; omit for the root | |
| opacity | No | ||
| blendMode | No | ||
| imagePath | Yes | Image file to import | |
| placement | No | original: 1:1 pixels centered; fit: scale to fit inside the canvas; fill: scale to cover the canvas; stretch: match canvas size | original |