Watermark an image
image_watermarkAdd a text or image watermark to an image, controlling position, opacity, rotation, and tiling. Protect visual content or brand it with a logo or caption.
Instructions
Add a text or image watermark with position, opacity, rotation and optional tiling. Supply either 'text' or 'watermark_path'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http(s) URL to fetch. | |
| path | No | Path to the base image. | |
| text | No | Watermark text. | |
| tile | No | Repeat the watermark across the whole image. | |
| scale | No | Logo width as a fraction of the image's shorter edge. | |
| colour | No | Text RGB colour. | |
| shadow | No | Draw a drop shadow behind text for legibility. | |
| opacity | No | Watermark opacity. | |
| padding | No | Distance from the edge in pixels. | |
| quality | No | Lossy quality. | |
| spacing | No | Gap between tiles in pixels. | |
| position | No | center, top, bottom, left, right, or a corner like bottom-right. | bottom-right |
| rotation | No | Rotate the watermark, in degrees. | |
| font_size | No | Text size in pixels; defaults to a fraction of the image. | |
| base64_data | No | Inline base64 base image. | |
| font_family | No | Font name from the server's font index, e.g. DejaVuSans-Bold. | |
| output_name | No | Override the output filename. | |
| return_image | No | Embed the result inline. | |
| stroke_width | No | Outline width for text. | |
| output_format | No | Output codec; defaults to the input format. | |
| return_base64 | No | Include base64 in the JSON result. | |
| strip_metadata | No | Strip metadata from the output. | |
| watermark_path | No | Path to a logo/watermark image (mutually exclusive with text). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| input | No | Summary of the source image, when one was read. | |
| notes | No | ||
| steps | No | ||
| metrics | No | Operation-specific measurements (e.g. comparison scores). | |
| outputs | No | ||
| operation | Yes | Tool that produced this result. | |
| sizeChange | No | ||
| inlineImageIncluded | No | True when an image block accompanies this result for vision-capable clients. |