Files
picgo-plugin-squoosh/README.md
2026-01-13 13:56:56 +08:00

34 lines
975 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# picgo-plugin-squoosh
为[PicGo](https://github.com/Molunerfinn/PicGo)开发的插件
* 使用[@squoosh/lib](https://github.com/GoogleChromeLabs/squoosh/tree/dev/libsquoosh)压缩图片,所有处理在本地执行,[详见](https://github.com/GoogleChromeLabs/squoosh#privacy)
* 使用图片md5进行重命名
![](https://raw.githubusercontent.com/JolyneAnasui/picgo-plugin-squoosh/main/images/1.png)
## 配置
* 初次使用前请进行配置
![](https://raw.githubusercontent.com/JolyneAnasui/picgo-plugin-squoosh/main/images/2.png)
* `开`表示压缩相应扩展名的图片,反则反之
* `开`表示使用图片md5进行重命名与压缩相互独立
* 使用squoosh的默认压缩配置若想定制请修改`index.js`里的`DefaultEncodeOptions`
## 安装
```bash
git clone https://gitea.artoio.com/yongjie.xu/picgo-plugin-squoosh.git
cd picgo-plugin-squoosh && npm install
```
## PicGo 导入本地插件
1. 导入插件
2. 重启PicGo