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.
gif2webp
converts a GIF image to a WebP image.
-
Clone the repository.
-
Build and run container:
$> sudo docker build -t gif2webp .
$> sudo docker run -it --rm -p 8080:8080 gif2webp
# You will see:
... Start gif2web server on 8080
- Submit a
POST
request tohttp://localhost:8080/convert?quality=30
withgif
image. Thequality
parameter can be from0
to100
.
The gif
will be converted to webp
and sended in response.
BTC - 19SYMA2hqRZHRSL4di35Uf7jV87KBKc9bf
ETH - 0xD7cc10f0d70Fd8f9fB83D4eF9250Fc9201981e3a