An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# gwebp

[![build](https://github.com/linehk/gwebp/actions/workflows/build.yml/badge.svg "build")](https://github.com/linehk/gwebp/actions)
[![codecov](https://codecov.io/gh/linehk/gwebp/graph/badge.svg "codecov")](https://codecov.io/gh/linehk/gwebp)
[![go report](https://goreportcard.com/badge/github.com/linehk/gwebp "go report")](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")