Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roman-kiselenko/gif2webp-docker
gif2webp-docker - a docker container with REST API, will convert a GIF image to WebP.
https://github.com/roman-kiselenko/gif2webp-docker
docker gif2webp go golang rest-api
Last synced: 2 months ago
JSON representation
gif2webp-docker - a docker container with REST API, will convert a GIF image to WebP.
- Host: GitHub
- URL: https://github.com/roman-kiselenko/gif2webp-docker
- Owner: roman-kiselenko
- Created: 2018-10-14T10:33:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T09:35:41.000Z (about 6 years ago)
- Last Synced: 2024-08-04T10:08:41.868Z (5 months ago)
- Topics: docker, gif2webp, go, golang, rest-api
- Language: Go
- Homepage:
- Size: 2.19 MB
- Stars: 29
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webp
## Purpose
This project is supposed to be for learning.
* Why docker?
- I dont want to install `webp` related libs to the host machine. Docker is very handy in order to keep environment clean.
## Description
`gif2webp` converts a GIF image to a WebP image.
## Run
0. Clone the repository.
1. Build and run container:
```bash
$> sudo docker build -t gif2webp .
$> sudo docker run -it --rm -p 8080:8080 gif2webp
# You will see:
... Start gif2web server on 8080
```2. Submit a `POST` request to `http://localhost:8080/convert?quality=30` with `gif` image. The `quality` parameter can be from `0` to `100`.
The `gif` will be converted to `webp` and sended in response.
## Tips
BTC - 19SYMA2hqRZHRSL4di35Uf7jV87KBKc9bf
ETH - 0xD7cc10f0d70Fd8f9fB83D4eF9250Fc9201981e3a