说明:
- 一张图片上,最多添加10张不同的图片水印。
- 不支持添加动图作为水印。
请求格式
API_url?watermark/1/image/<encodedURL>
/gravity/<gravity>
/dx/<dx>
/dy/<dy>
/blogo/<type>
指定的水印图片必须满足如下条件:
- URL 必须以
http://
开始,不能省略 HTTP 头,也不能填 HTTPS 头,例如examplebucket-1250000000.cos.ap-shanghai.myqcloud.com/shuiyin_2.png
,https://examplebucket-1250000000.cos.ap-shanghai.myqcloud.com/shuiyin_2.png
为非法的水印 URL。
九宫格方位图
九宫格方位图可为图片的多种操作提供位置参考。红点为各区域位置的原点(通过 gravity 参数选定各区域后位移操作会以相应远点为参照)。
说明:
- 当 gravity 参数设置为 center 时,dx、dy 参数无效。
- 当 gravity 参数设置为 north 或 south 时,dx 参数无效(水印会水平居中)。
- 当 gravity 参数设置为 west 或 east 时,dy 参数无效(水印会垂直居中)。
评论