Skip to content

TupiC/img-to-webp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple webp converter using cwebp. this is a simple docker-compose setup to convert any image file to webp.

Usage

  1. place image files in the input directory
  2. run the script with docker-compose up -d && docker-compose rm -fsv

Miscellaneous

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.png

For multiple images conversion:

bash imagemagick.sh

About

Converts all images in a folder to webp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors