compose_images
Overlay images like watermarks or logos onto base images with precise positioning controls, scaling, and opacity adjustments for custom compositions.
Instructions
Overlay one image on top of another (e.g., add watermark, logo). Uses PIL for precise positioning - no AI needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_image_url | Yes | URL of the background/base image | |
| overlay_image_url | Yes | URL of the image to overlay (e.g., logo, watermark). Use upload_file for local images. | |
| position | No | Where to place the overlay. Use 'custom' with x,y for exact positioning. | bottom-right |
| x | No | Custom X position in pixels (required if position='custom') | |
| y | No | Custom Y position in pixels (required if position='custom') | |
| scale | No | Scale overlay relative to base image width (0.01-1.0). Default 0.15 = 15% of base width. | |
| padding | No | Padding from edges in pixels (for preset positions) | |
| opacity | No | Overlay opacity (0.0=transparent, 1.0=opaque) | |
| output_format | No | Output image format | png |