cwebp
Compress an image file to a WebP file. More information: <https://developers.google.com/speed/webp/docs/cwebp>.
Install
- All systems
-
curl cmd.cat/cwebp.sh
- Debian
-
apt-get install webp
- Ubuntu
-
apt-get install webp
- Alpine
-
apk add libwebp
- Arch Linux
-
pacman -S libwebp
- Kali Linux
-
apt-get install webp
- CentOS
-
yum install libwebp-tools
- Fedora
-
dnf install libwebp-tools
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install webp
- OS X
-
brew install webp
- Raspbian
-
apt-get install webp
- Dockerfile
- dockerfile.run/cwebp
- Docker
-
docker run cmd.cat/cwebp cwebp
powered by Commando
Compress an image file to a WebP file. More information: <https://developers.google.com/speed/webp/docs/cwebp>.
-
Compress a WebP file with default settings (q = 75) to the [o]utput file:
cwebp path/to/image_file -o path/to/output.webp
-
Compress a WebP file with the best [q]uality and largest file size:
cwebp path/to/image_file -o path/to/output.webp -q 100
-
Compress a WebP file with the worst [q]uality and smallest file size:
cwebp path/to/image_file -o path/to/output.webp -q 0
-
Compress a WebP file and apply resize to image:
cwebp path/to/image_file -o path/to/output.webp -resize width height
-
Compress a WebP file and drop alpha channel information:
cwebp path/to/image_file -o path/to/output.webp -noalpha
© tl;dr; authors and contributors