Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-unicloud-zh
提交
63f107ae
U
unidocs-unicloud-zh
项目概览
DCloud
/
unidocs-unicloud-zh
通知
84
Star
2
Fork
20
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
9
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
unidocs-unicloud-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
9
合并请求
9
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
63f107ae
编写于
6月 28, 2024
作者:
VK1688
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: ext-storage/dev.md
上级
7df1e317
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
58 addition
and
22 deletion
+58
-22
docs/ext-storage/dev.md
docs/ext-storage/dev.md
+58
-22
未找到文件。
docs/ext-storage/dev.md
浏览文件 @
63f107ae
...
...
@@ -1635,18 +1635,22 @@ https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher.png
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher.png
)
-
水印图片
-
imageurl =
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/uniCloud.jpg
-
encodedimageurl =
aHR0cHM6Ly93ZWItZXh0LXN0b3JhZ2UuZGNsb3VkLm5ldC5jbi91bmljbG91ZC9leHQtc3RvcmFnZS91bmlDbG91ZC5qcGc=
-
imageurl =
`https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/uniCloud.jpg`
-
encodedimageurl =
`aHR0cHM6Ly93ZWItZXh0LXN0b3JhZ2UuZGNsb3VkLm5ldC5jbi91bmljbG91ZC9leHQtc3RvcmFnZS91bmlDbG91ZC5qcGc=`
-
水印透明度: 50% (dissolve=50)
-
水印位置: 右下角 (gravity=SouthEast)
-
横向边距: 20px
-
纵向边距: 20px
-
水印图片自适应短边比例:0.2
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher.png?watermark/1/image/aHR0cHM6Ly93ZWItZXh0LXN0b3JhZ2UuZGNsb3VkLm5ldC5jbi91bmljbG91ZC9leHQtc3RvcmFnZS91bmlDbG91ZC5qcGc=/dissolve/50/gravity/SouthEast/dx/20/dy/20/ws/0.2
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher.png?watermark/1/image/aHR0cHM6Ly93ZWItZXh0LXN0b3JhZ2UuZGNsb3VkLm5ldC5jbi91bmljbG91ZC9leHQtc3RvcmFnZS91bmlDbG91ZC5qcGc=/dissolve/50/gravity/SouthEast/dx/20/dy/20/ws/0.2
)
### 图片盲水印处理@image-watermark-5
...
...
@@ -1732,48 +1736,64 @@ https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png
编码/ 添加盲水印(version/3)
-
水印图片cloudPath:unicloud/ext-storage/uniCloud.png
-
水印图片encodedImageKey:dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n
-
水印图片cloudPath:
`unicloud/ext-storage/uniCloud.png`
-
水印图片encodedImageKey:
`dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/3/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/3/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n
)
解码/ 提取盲水印(version/3)
-
水印图片cloudPath:unicloud/ext-storage/uniCloud.png
-
水印图片encodedImageKey:dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n
-
水印图片cloudPath:
`unicloud/ext-storage/uniCloud.png`
-
水印图片encodedImageKey:
`dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/3/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n|watermark/5/version/3/method/decode
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/3/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n|watermark/5/version/3/method/decode
)
编码/ 添加盲水印(version/2)
-
水印图片cloudPath:unicloud/ext-storage/u.png
-
水印图片encodedImageKey:dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n
-
水印图片cloudPath:
`unicloud/ext-storage/u.png`
-
水印图片encodedImageKey:
`dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/2/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdS5wbmc=
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/2/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdS5wbmc=
)
解码/ 提取盲水印(version/2)
-
水印图片cloudPath:unicloud/ext-storage/u.png
-
水印图片encodedImageKey:dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n
-
原图cloudPath:unicloud/ext-storage/gogopher1.png
-
原图encodedImage:dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==
-
水印图片cloudPath:
`unicloud/ext-storage/u.png`
-
水印图片encodedImageKey:
`dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdW5pQ2xvdWQucG5n`
-
原图cloudPath:
`unicloud/ext-storage/gogopher1.png`
-
原图encodedImage:
`dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/2/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdS5wbmc=|watermark/5/version/2/method/decode/orignal/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/5/version/2/method/encode/imageKey/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvdS5wbmc=|watermark/5/version/2/method/decode/orignal/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==
)
#### 文字盲水印
...
...
@@ -1835,48 +1855,64 @@ https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png
编码/ 添加盲水印(version/3)
-
文本原文:123456
-
文本encodedText:MTIzNDU2
-
文本原文:
`123456`
-
文本encodedText:
`MTIzNDU2`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/3/method/encode/text/MTIzNDU2
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/3/method/encode/text/MTIzNDU2
)
解码/ 提取盲水印(version/3)
-
文本原文:123456
-
文本encodedText:MTIzNDU2
-
文本原文:
`123456`
-
文本encodedText:
`MTIzNDU2`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/3/method/encode/text/MTIzNDU2|watermark/6/version/3/method/decode
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/3/method/encode/text/MTIzNDU2|watermark/6/version/3/method/decode
)
编码/ 添加盲水印(version/2)
-
文本原文:123456
-
文本encodedText:MTIzNDU2
-
文本原文:
`123456`
-
文本encodedText:
`MTIzNDU2`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/2/method/encode/text/MTIzNDU2
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/2/method/encode/text/MTIzNDU2
)
解码/ 提取盲水印(version/2)
-
文本原文:123456
-
文本encodedText:MTIzNDU2
-
原图cloudPath:unicloud/ext-storage/gogopher1.png
-
原图encodedImage:dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==
-
文本原文:
`123456`
-
文本encodedText:
`MTIzNDU2`
-
原图cloudPath:
`unicloud/ext-storage/gogopher1.png`
-
原图encodedImage:
`dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==`
最终拼接得到图片URL如下
```
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/2/method/encode/text/MTIzNDU2|watermark/6/version/2/method/decode/orignal/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==
```
效果展示
![](
https://web-ext-storage.dcloud.net.cn/unicloud/ext-storage/gogopher1.png?watermark/6/version/2/method/encode/text/MTIzNDU2|watermark/6/version/2/method/decode/orignal/dW5pY2xvdWQvZXh0LXN0b3JhZ2UvZ29nb3BoZXIxLnBuZw==
)
### 动图合成@image-animate
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录