overlay
Composite one image onto another at a specified offset and opacity, writing the result to a new file without altering the sources. Ideal for adding logos or badges.
Instructions
Composite one image on top of another and write the result to a NEW file (sources unchanged). The 'overlay' image is placed at offset (x, y) on the 'base' image; its alpha channel is respected, and an 'opacity' of 0-1 lets you fade it in. Use it for logos, badges, or layering. Returns the output path and the offset used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Horizontal offset of the overlay's top-left corner on the base (default 0). | |
| y | No | Vertical offset of the overlay's top-left corner on the base (default 0). | |
| out | Yes | Output image path. A new file is created; both sources are left untouched. | |
| base | Yes | Path to the bottom (base) image. | |
| opacity | No | Opacity of the overlay, 0-1 (default 1.0 = fully opaque). | |
| overlay | Yes | Path to the top image to composite, whose alpha channel is honored. |