CmdID

CmdID / Commands

cwebp

Compress an image file to a WebP file. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Compress a WebP file with default settings (lossy compression, q = 75) to the output file

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

Compress a WebP file with the best lossy compression quality and largest file size

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

Compress a WebP file with the worst lossy compression quality and smallest file size

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

Compress a WebP file with lossless compression and smallest possible file size

cwebp path/to/image_file -o path/to/output.webp -z 9Identify

Compress a WebP file and apply resize to image (if width or height are 0, scaling preserves aspect ratio)

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

Compress a WebP file and drop alpha channel information

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