Skip to content

Commit db751cb

Browse files
committed
update
1 parent 25633c6 commit db751cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/posts/auto-add-watermark-imagemagick-protect-copyright/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tags:
2020

2121
## 实现
2222

23-
思路其实和之前图片压缩一样,还是在Github Action里使用ImageMagick工具进行添加水印操作。
23+
思路其实和之前图片压缩一样,还是在Github Action里使用ImageMagick工具进行添加水印操作,不依赖第三方云服务
2424

2525
[workflow代码](https://github.com/Liudon/liudon.github.io/blob/code/.github/workflows/main.yml)
2626

@@ -63,7 +63,9 @@ run: |
6363
-fill #909090 代表水印颜色
6464
-pointsize 48 代表水印文字大小
6565
-font ./static/ArchitectsDaughter-Regular.ttf 代表水印字体,我使用了ArchitectsDaughter字体,提前下载到了git仓库
66-
@liudon\nhttps://liudon.com 代表文本水印内容
66+
@liudon\nhttps://liudon.com 代表文本水印内容,\n表示换行
67+
-gravity south 水印位置,九宫格位置
68+
-annotate +0+20 水印偏移
6769
```
6870
6971
[水印字体文件下载](https://fonts.google.com/specimen/Architects+Daughter)

0 commit comments

Comments
 (0)