diff --git a/README b/README index 90f8f10f..ba4e8c5d 100644 --- a/README +++ b/README @@ -220,8 +220,9 @@ assumed to be a PNG, JPEG, TIFF or WebP file. Options: -h / -help ............. short help -H / -longhelp ......... long help - -q ............. quality factor (0:small..100:big) - -alpha_q ......... transparency-compression quality (0..100) + -q ............. quality factor (0:small..100:big), default=75 + -alpha_q ......... transparency-compression quality (0..100), + default=100 -preset ....... preset setting, one of: default, photo, picture, drawing, icon, text @@ -229,15 +230,15 @@ Options: -z ............... activates lossless preset with given level in [0:fast, ..., 9:slowest] - -m ............... compression method (0=fast, 6=slowest) - -segments ........ number of segments to use (1..4) + -m ............... compression method (0=fast, 6=slowest), default=4 + -segments ........ number of segments to use (1..4), default=4 -size ............ target size (in bytes) -psnr .......... target PSNR (in dB. typically: 42) -s ......... input size (width x height) for YUV - -sns ............. spatial noise shaping (0:off, 100:max) - -f ............... filter strength (0=off..100) - -sharpness ....... filter sharpness (0:most .. 7:least sharp) + -sns ............. spatial noise shaping (0:off, 100:max), default=50 + -f ............... filter strength (0=off..100), default=60 + -sharpness ....... filter sharpness (0:most .. 7:least sharp), default=0 -strong ................ use strong filter instead of simple (default) -nostrong .............. use simple filter instead of strong -partition_limit . limit quality to fit the 512k limit on @@ -252,18 +253,18 @@ Options: -print_ssim ............ prints averaged SSIM distortion -print_lsim ............ prints local-similarity distortion -d .......... dump the compressed output (PGM file) - -alpha_method .... transparency-compression method (0..1) + -alpha_method .... transparency-compression method (0..1), default=1 -alpha_filter . predictive filtering for alpha plane, one of: none, fast (default) or best - -exact ................. preserve RGB values in transparent area + -exact ................. preserve RGB values in transparent area, default=off -blend_alpha ..... blend colors against background color expressed as RGB values written in hexadecimal, e.g. 0xc0e0d0 for red=0xc0 green=0xe0 and blue=0xd0 -noalpha ............... discard any transparency information - -lossless .............. encode image losslessly + -lossless .............. encode image losslessly, default=off -near_lossless ... use near-lossless image - preprocessing (0..100=off) + preprocessing (0..100=off), default=100 -hint ......... specify image characteristics hint, one of: photo, picture or graph diff --git a/examples/cwebp.c b/examples/cwebp.c index df45aa9b..a942100e 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -516,9 +516,10 @@ static void HelpLong(void) { printf("\nOptions:\n"); printf(" -h / -help ............. short help\n"); printf(" -H / -longhelp ......... long help\n"); - printf(" -q ............. quality factor (0:small..100:big)\n"); - printf(" -alpha_q ......... transparency-compression quality " - "(0..100)\n"); + printf(" -q ............. quality factor (0:small..100:big), " + "default=75\n"); + printf(" -alpha_q ......... transparency-compression quality (0..100)," + "\n default=100\n"); printf(" -preset ....... preset setting, one of:\n"); printf(" default, photo, picture,\n"); printf(" drawing, icon, text\n"); @@ -526,16 +527,20 @@ static void HelpLong(void) { printf(" -z ............... activates lossless preset with given\n" " level in [0:fast, ..., 9:slowest]\n"); printf("\n"); - printf(" -m ............... compression method (0=fast, 6=slowest)\n"); - printf(" -segments ........ number of segments to use (1..4)\n"); + printf(" -m ............... compression method (0=fast, 6=slowest), " + "default=4\n"); + printf(" -segments ........ number of segments to use (1..4), " + "default=4\n"); printf(" -size ............ target size (in bytes)\n"); printf(" -psnr .......... target PSNR (in dB. typically: 42)\n"); printf("\n"); printf(" -s ......... input size (width x height) for YUV\n"); - printf(" -sns ............. spatial noise shaping (0:off, 100:max)\n"); - printf(" -f ............... filter strength (0=off..100)\n"); + printf(" -sns ............. spatial noise shaping (0:off, 100:max), " + "default=50\n"); + printf(" -f ............... filter strength (0=off..100), " + "default=60\n"); printf(" -sharpness ....... " - "filter sharpness (0:most .. 7:least sharp)\n"); + "filter sharpness (0:most .. 7:least sharp), default=0\n"); printf(" -strong ................ use strong filter instead " "of simple (default)\n"); printf(" -nostrong .............. use simple filter instead of strong\n"); @@ -552,19 +557,21 @@ static void HelpLong(void) { printf(" -print_ssim ............ prints averaged SSIM distortion\n"); printf(" -print_lsim ............ prints local-similarity distortion\n"); printf(" -d .......... dump the compressed output (PGM file)\n"); - printf(" -alpha_method .... transparency-compression method (0..1)\n"); + printf(" -alpha_method .... transparency-compression method (0..1), " + "default=1\n"); printf(" -alpha_filter . predictive filtering for alpha plane,\n"); printf(" one of: none, fast (default) or best\n"); - printf(" -exact ................. preserve RGB values in transparent area" - "\n"); + printf(" -exact ................. preserve RGB values in transparent area, " + "default=off\n"); printf(" -blend_alpha ..... blend colors against background color\n" " expressed as RGB values written in\n" " hexadecimal, e.g. 0xc0e0d0 for red=0xc0\n" " green=0xe0 and blue=0xd0\n"); printf(" -noalpha ............... discard any transparency information\n"); - printf(" -lossless .............. encode image losslessly\n"); + printf(" -lossless .............. encode image losslessly, default=off\n"); printf(" -near_lossless ... use near-lossless image\n" - " preprocessing (0..100=off)\n"); + " preprocessing (0..100=off), " + "default=100\n"); #ifdef WEBP_EXPERIMENTAL_FEATURES printf(" -delta_palettization ... use delta palettization\n"); #endif // WEBP_EXPERIMENTAL_FEATURES diff --git a/man/cwebp.1 b/man/cwebp.1 index a89ee7a8..a433f84e 100644 --- a/man/cwebp.1 +++ b/man/cwebp.1 @@ -1,5 +1,5 @@ .\" Hey, EMACS: -*- nroff -*- -.TH CWEBP 1 "June 23, 2016" +.TH CWEBP 1 "August 05, 2016" .SH NAME cwebp \- compress an image file to a WebP file .SH SYNOPSIS @@ -171,7 +171,7 @@ Specify the amplitude of the spatial noise shaping. Spatial noise shaping (or \fBsns\fP for short) refers to a general collection of built\-in algorithms used to decide which area of the picture should use relatively less bits, and where else to better transfer these bits. The possible range goes from -0 (algorithm is off) to 100 (the maximal effect). The default value is 80. +0 (algorithm is off) to 100 (the maximal effect). The default value is 50. .TP .BI \-segments " int Change the number of partitions to use during the segmentation of the