cwebp

Compress an image file to a WebP file. More information: https://developers.google.com/speed/webp/docs/cwebp.

cwebp path/to/image_file -o path/to/output.webp

cwebp path/to/image_file -o path/to/output.webp -q 100

cwebp path/to/image_file -o path/to/output.webp -q 0

cwebp path/to/image_file -o path/to/output.webp -resize width height

cwebp path/to/image_file -o path/to/output.webp -noalpha