add_image_watermark_to_image
Overlay a watermark image onto a source image with configurable position, opacity, and rotation.
Instructions
Overlay a watermark image on a source image via PDF4me AddImageWatermarkToImage (/api/v2/AddImageWatermarkToImage). Provide image_file_path, watermark_image_file_path, and position (topright, topleft, bottomright, bottomleft, centralhorizontal, diagonal, centralvertical, custom). Optional: opacity (0.0–1.0), horizontal/vertical offset, position_x/y for custom, rotation (degrees), output path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_file_path": "<image_file_path>",
"watermark_image_file_path": "<watermark_image_file_path>",
"position": "<position>"
},
"name": "add_image_watermark_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opacity | No | ||
| doc_name | No | ||
| position | Yes | ||
| rotation | No | ||
| output_dir | No | ||
| position_x | No | ||
| position_y | No | ||
| image_file_path | Yes | ||
| vertical_offset | No | ||
| output_file_name | No | ||
| horizontal_offset | No | ||
| watermark_file_name | No | ||
| watermark_image_file_path | Yes |