CWEBP(1) General Commands Manual CWEBP(1) (NAME) cwebp - WebP (SYNOPSIS) cwebp [options] input_file -o output_file.webp (DESCRIPTION) cwebp . cwebp WebP . PNG JPEG TIFF WebP Y'CbCr . : PNG WebP . (OPTIONS) : -o string WebP . cwebp . <<->> 'stdout' . -- string . <<->> . . . -h, -help . -H, -longhelp . -version ( major.minor.revision) . -lossless . (R/G/B Y/U/V) -exact . -near_lossless int (near- lossless) . . . 0 ( ) 100 ( ) . 60 . -q 100 . -q float RGB 0 100 . 75 . () . 100 . ( -lossless) . 100 . -z int lossless () 0 9 0 9 . . -z 6 . . -q -m . -alpha_q int 0 100 . 100 . 100 . -preset string . : default photo picture drawing icon text. -preset ( -q) . -m int . . 0 6 . 4 . . . -crop x_position y_position width height - (x_position, y_position) width height . . : . -resize width height width height . width height ( ) 0 (aspect-ratio) . : . -resize_mode string -resize . : down_only up_only always (). down_only -resize . up_only . -mt (multi-threading) . -low_memory () . . 3 . (bitstream) : ( 1). cwebp . (LOSSY OPTIONS) ( ) . -size int ( ) . . -size -psnr -size . -psnr float (PSNR) ( - dB) . . -size -psnr -size . -pass int (pass) -size -psnr . 10 1 . -size -psnr -pass '6' . -pass -size -psnr PSNR 40dB . -qrange int int . ( -size -psnr) . 0 100 . (clamp) . . -af (auto-filter) . . -jpeg_like JPEG . JPEG ( -q) . : -f int (deblocking filter) 0 ( ) 100 ( ) . 0 . . . 20 50 . -sharpness int (sharpness) ( ) . 0 ( ) 7 ( ) . 0 . -strong ( -f ). . -nostrong ( -f ) . -sharp_yuv RGB->YUV . 'fast' RGB->YUV . -sns int (spatial noise shaping) . ( sns) . 0 ( ) 100 ( ) . 50 . -segments int (segmentation) sns . 1 4 . 4 . 3 -low_memory . -partition_limit int . 0 ( ) 100 ( ) . 30-70 . VP8 (control partition) 512 : (skip) (intra) 4x4 16x16 . 512 16x16 . 4 . 4 ( ) . partition_limit (intra 4x4) . 512k : Error code: 6 (PARTITION0_OVERFLOW: Partition #0 is too big to fit 512k). -partition_limit 512k . -segments . -m -q . (LOGGING OPTIONS) : -v ( ) . -print_psnr PSNR ( ) . -print_ssim SSIM ( https://en.wikipedia.org/wiki/SSIM ) . -print_lsim ( ) . -progress . -quiet . -short ( PSNR) . -map int (ASCII-map) . 1 6 . . (ADDITIONAL OPTIONS) : -s width height Y'CbCr ITU-R BT.601 4:2:0 . (luma) width height . -pre int . '2' (dithering) RGBA->YUVA ( ). -alpha_filter string . 'none' 'fast' 'best' . 'fast' . (none horizontal vertical gradient) . 'best' . 'fast' . -alpha_method int : 0 1. 0 1 WebP . 1 . -exact RGB . . -blend_alpha int ( ) 0xrrggbb . 255 . -noalpha . -hint string . : photo picture graph. -metadata string ( ). : all none exif icc xmp. none . : . -noasm . (EXIT STATUS) cwebp C EXIT_SUCCESS . . cwebp C EXIT_FAILURE . . (EXAMPLES) cwebp -q 50 -lossless picture.png -o picture_lossless.webp cwebp -q 70 picture_with_alpha.png -o picture_with_alpha.webp cwebp -sns 70 -f 50 -size 60000 picture.png -o picture.webp cwebp -o picture.webp -- ---picture.png (AUTHORS) cwebp libwebp WebP . : https://chromium.googlesource.com/webm/libwebp Pascal Massimino ( ). (BUGS) : https://issues.webmproject.org ! : https://www.webmproject.org/code/contribute/submitting-patches (SEE ALSO) dwebp(1), gif2webp(1) https://developers.google.com/speed/webp . April 10, 2025 CWEBP(1)