dsc__CreateImageWatermarkByAddress
Embed a text or image blind watermark into an image stored at a Huawei Cloud OBS address and save the watermarked result to a specified OBS location.
Instructions
[DSC] 对指定存储地址信息(目前支持华为云OBS)的图片嵌入文字暗水印或者图片暗水印,已嵌入的水印的图片将存放在用户指定的位置(目前支持华为云OBS),支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。
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": {
"project_id": "<project_id>",
"region_id": "<region_id>",
"src_file": "<src_file>"
},
"name": "dsc__CreateImageWatermarkByAddress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst_file | No | 添加水印后的图片存放的地址,格式要求同src_file字段,不设置时,默认取src_file的值,即添加水印后覆盖原文件。 | |
| src_file | Yes | 待加暗水印的图片地址,当前只支持华为云OBS文件,格式为 **obs://bucket/object** ,其中bucket为和当前项目处于同一区域的OBS桶名称,object为对象全路径名。例如:**obs://hwbucket/hwinfo/hw.png**,其中obs://表示OBS存储,hwbucket为桶名,hwinfo/hw.png为对象全路径名。 | |
| region_id | Yes | 当前项目所在region的id,如:xx-xx-1。 | |
| project_id | Yes | 项目ID | |
| blind_watermark | No | 待嵌入的文字暗水印内容,长度不超过32个字符。当前仅支持数字及英文大小写。与图片暗水印image_watermark二选一。 | |
| image_watermark | No | 待嵌入的图片暗水印地址,格式要求同src_file字段,与文字暗水印 blind_watermark 二选一,都填写时,生效image_watermark。 |