simple webp converter using cwebp. this is a simple docker-compose setup to convert any image file to webp.
- place image files in the
inputdirectory - run the script with
docker-compose up -d && docker-compose rm -fsv
This repo uses cwebp for compression if you want to use more advanced image manipulation you can use imagemagick docker image like below. This resizes images to 256x256 pixels:
For a single image conversion:
docker run --rm -v $(pwd)/input:/input -v $(pwd)/output:/output -it dpokidov/imagemagick magick /input/barista-cert.png -resize 256x256 /output/output.pngFor multiple images conversion:
bash imagemagick.sh