Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fhyoga/picgo-plugin-watermark
PicGo's watermark plugin
https://github.com/fhyoga/picgo-plugin-watermark
Last synced: 3 months ago
JSON representation
PicGo's watermark plugin
- Host: GitHub
- URL: https://github.com/fhyoga/picgo-plugin-watermark
- Owner: fhyoga
- License: mit
- Created: 2019-12-20T02:09:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-26T16:00:40.000Z (almost 3 years ago)
- Last Synced: 2024-05-23T06:03:13.929Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 14.8 MB
- Stars: 57
- Watchers: 4
- Forks: 13
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-PicGo - picgo-plugin-watermark
README
# picgo-plugin-watermark
# Screenshot
![](https://gitee.com/Dec-F/ImageHosting/raw/master/img/2019/12/25/20191225174743.png)
![](https://gitee.com/Dec-F/ImageHosting/raw/master/img/2000-57139f0ecc19a932873e59a055d486d8.jpg)
![](https://gitee.com/Dec-F/ImageHosting/raw/master/img/2019/12/27/20191227170849.jpg)
# Features
Add watermark to picture
# Installation
Open [PicGo](https://github.com/Molunerfinn/PicGo)>=2.2.0 and add this plugin `picgo-plugin-watermark`
### Setting
#### fontFamily
字体文件路径。E.g.`/Users/fonts/Arial-Unicode-MS.ttf`。
默认只支持英文水印,中文支持需要自行导入中文字体文件。
#### text
水印文字。E.g.`hello world`
#### textColor
水印文字的颜色,支持rgb和hex格式。E.g.`rgb(178,178,178)`、`#b2b2b2`
#### fontSize
字体大小,默认`14`
#### image
水印图片路径。E.g.`/Users/watermark.png`,优先级大于文字
#### position
位置,默认`rb`
```js
export enum PositionType {
lt = "left-top",
ct = "center-top",
rt = "right-top",
lm = "left-middle",
cm = "center-middle",
rm = "right-middle",
lb = "left-bottom",
cb = "center-bottom",
rb = "right-bottom"
}
```#### minSize
原图最小尺寸,小于这一尺寸不添加水印。E.g.200\*200。
高度或宽度任何一个小于限制,都会触发
# ChangeLog
[ChangeLog](https://github.com/Dec-F/picgo-plugin-watermark/blob/master/CHANGELOG.md)