diff --git a/man/cwebp.1 b/man/cwebp.1 index 132359cd..0d7c1a63 100644 --- a/man/cwebp.1 +++ b/man/cwebp.1 @@ -12,9 +12,7 @@ This manual page documents the command. .PP \fBcwebp\fP compresses an image using the WebP format. -Input format can be either PNG, JPEG, or raw Y'CbCr samples. -When using PNG, the transparency information (alpha channel) is currently -discarded. +Input format can be either PNG, JPEG, TIFF or raw Y'CbCr samples. .SH OPTIONS The basic options are: .TP @@ -41,14 +39,6 @@ Specify the compression factor for alpha compression between 0 and 100. Lossless compression of alpha is achieved using a value of 100, while the lower values result in a lossy compression. The default is 100. .TP -.B \-alpha_filter string -Specify the predictive filtering method for alpha plane. One of 'none', 'fast' -or 'best', in increasing complexity and slowness order. Default is 'fast'. -Internally, alpha filtering is performed using four possible predictions (none, -horizontal, vertical, gradient). The 'best' mode will try each modes in turn and -pick the one which gives the smaller size. The 'fast' mode will just try to -form an a-priori guess without testing all modes. -.TP .B \-f int Specify the strength of the deblocking filter, between 0 (no filtering) and 100 (maximum filtering). A value of 0 will turn off any filtering. @@ -129,7 +119,7 @@ Compressor will make several pass of partial encoding in order to get as close as possible to this target. .TP .B \-pass int -Set a maximum number of pass to use during the dichotomy used by +Set a maximum number of passes to use during the dichotomy used by options \fB\-size\fP or \fB\-psnr\fP. Maximum value is 10. .TP .B \-crop x_position y_position width height @@ -150,10 +140,17 @@ range from 1 to 6. This is only meant to help debugging. Specify a pre-processing filter. This option is a placeholder and has currently no effect. .TP +.B \-alpha_filter string +Specify the predictive filtering method for alpha plane. One of 'none', 'fast' +or 'best', in increasing complexity and slowness order. Default is 'fast'. +Internally, alpha filtering is performed using four possible predictions (none, +horizontal, vertical, gradient). The 'best' mode will try each modes in turn and +pick the one which gives the smaller size. The 'fast' mode will just try to +form an a-priori guess without testing all modes. +.TP .B \-alpha_method int Specify the algorithm used for alpha compression: 0 or 1. Algorithm 0 denotes -no compression, 1 uses uses backward reference counts encoded with arithmetic -encoder. The default is 1. +no compression, 1 uses WebP lossless format for compression. The default is 1. .TP .B \-alpha_cleanup Modify unseen RGB values under fully transparent area, to help compressibility. @@ -198,7 +195,9 @@ Patches welcome! See this page to get started: http://www.webmproject.org/code/contribute/submitting-patches/ .SH EXAMPLES -cwebp \-q 70 picture.png \-o picture.webp +cwebp \-q 50 -lossless picture.png \-o picture_lossless.webp +.br +cwebp \-q 70 picture_with_alpha.png \-o picture_with_alpha.webp .br cwebp \-sns 70 \-f 50 \-strong \-af \-size 60000 picture.png \-o picture.webp