https://github.com/yestool/convert-to-webp
image to webp
https://github.com/yestool/convert-to-webp
image image-convert image-converter webp
Last synced: 8 months ago
JSON representation
image to webp
- Host: GitHub
- URL: https://github.com/yestool/convert-to-webp
- Owner: yestool
- License: mit
- Created: 2025-02-08T12:14:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T03:36:11.000Z (over 1 year ago)
- Last Synced: 2025-05-21T16:11:31.732Z (about 1 year ago)
- Topics: image, image-convert, image-converter, webp
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# convert-to-webp
## 启动容器
使用以下命令启动容器:
```bash
docker-compose up
```
如果你想在后台运行容器,可以加上`-d`参数:
```bash
docker-compose up -d
```
---
## 测试 API
容器启动后,你可以通过以下命令测试 API:
```bash
curl -X POST -F "image=@/path/to/your/image.jpg" http://localhost:8080/convert-to-webp --output converted.webp
```
---
## 停止和清理
### 停止容器
```bash
docker-compose down
```
### 删除镜像
如果你想删除构建的镜像,可以使用以下命令:
```bash
docker rmi
```
---