https://github.com/linehk/gwebp
gwebp can recursively convert images in the specified directory into webp of the same name.
https://github.com/linehk/gwebp
cwebp go golang webp
Last synced: 2 months ago
JSON representation
gwebp can recursively convert images in the specified directory into webp of the same name.
- Host: GitHub
- URL: https://github.com/linehk/gwebp
- Owner: linehk
- License: mit
- Created: 2019-06-12T10:38:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T21:14:32.000Z (over 2 years ago)
- Last Synced: 2025-12-13T05:31:18.372Z (8 months ago)
- Topics: cwebp, go, golang, webp
- Language: Go
- Homepage:
- Size: 317 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh.md
- License: LICENSE
Awesome Lists containing this project
README
# gwebp
[](https://github.com/linehk/gwebp/actions)
[](https://codecov.io/gh/linehk/gwebp)
[](https://goreportcard.com/report/github.com/linehk/gwebp)
[English](./README.md "English") | 简体中文
gwebp 可以递归地将指定目录下的图片转换成同名的 webp 格式的图片。
## 安装
需要先行安装 webp,如:`brew install webp`,然后:
```bash
go install github.com/linehk/gwebp
```
## 使用
```bash
gwebp -r='.' -e='jpg' -a='-q 50 -lossless' -k=true
```
```bash
gwebp -r='.' -e='png' -a='-sns 70 -f 50 -size 60000' -k=false
```
## 参与贡献
如果你觉得我的参考答案有什么需要改进的地方,欢迎发起 Pull Request。
如果有重大变化,请先打开一个 Issue,讨论您想要改变的内容。
## 开源许可证
[MIT License](./LICENSE "MIT License")