提交的内容

This commit is contained in:
2025-05-12 15:45:02 +08:00
parent 629c4750da
commit b48c692775
3043 changed files with 34732 additions and 60810 deletions

3
vendor/qcloud/cos-sdk-v5/sample/imageProcessWatermarkText.php vendored Executable file → Normal file
View File

@ -9,7 +9,7 @@ $region = "ap-beijing"; //替换为用户的 region已创建桶归属的regio
$cosClient = new Qcloud\Cos\Client(
array(
'region' => $region,
'schema' => 'https', //协议头部默认为http
'scheme' => 'https', //协议头部默认为http
'credentials' => array(
'secretId' => $secretId,
'secretKey' => $secretKey)));
@ -25,6 +25,7 @@ try {
$textWatermarkRule->setDx(10); // 水平横轴边距单位为像素缺省值为0
$textWatermarkRule->setDy(10); // 垂直纵轴边距单位为像素默认值为0
$textWatermarkRule->setBatch(1); // 平铺水印功能可将文字水印平铺至整张图片。值为1时表示开启平铺水印功能
$textWatermarkRule->setSpacing(10); // 平铺模式下的水平、垂直间距相对文字水印贴图的宽高百分比,范围为[0,100]默认10
$textWatermarkRule->setDegree(10); // 当 batch 值为1时生效。文字水印的旋转角度设置取值范围为0 - 360默认0
$textWatermarkRule->setShadow(10); // 文字阴影效果,有效值为[0,100]默认为0表示无阴影
$textWatermarkRule->setScatype(1); // 根据原图的大小,缩放调整文字水印的大小