add_watermark
Add text or image watermarks to photos with customizable position, opacity, and scale. Supports various output formats like PNG, JPEG, and WEBP for secure image protection.
Instructions
为图片添加水印
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 | |
opacity | No | 水印不透明度,范围 0.0-1.0 | |
output_format | No | 输出格式:PNG、JPEG、WEBP 等 | PNG |
position | No | 水印位置:top-left、top-right、bottom-left、bottom-right、center | bottom-right |
scale | No | 水印缩放比例,1.0为原始大小 | |
watermark_image | No | 水印图片路径或base64数据,与watermark_text二选一 | |
watermark_text | No | 水印文字内容,与watermark_image二选一 |