mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
man/cwebp: group lossy-only options
+ reorder / regroup other options based on basic vs. advanced + logging Change-Id: I1cedef08e29f516952671f9e64771ee108e80867
This commit is contained in:
parent
52fdbdfe66
commit
96f5b4237d
166
man/cwebp.1
166
man/cwebp.1
@ -1,5 +1,5 @@
|
|||||||
.\" Hey, EMACS: -*- nroff -*-
|
.\" Hey, EMACS: -*- nroff -*-
|
||||||
.TH CWEBP 1 "October 19, 2015"
|
.TH CWEBP 1 "November 02, 2015"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
cwebp \- compress an image file to a WebP file
|
cwebp \- compress an image file to a WebP file
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -35,6 +35,15 @@ A summary of all the possible options.
|
|||||||
.B \-version
|
.B \-version
|
||||||
Print the version number (as major.minor.revision) and exit.
|
Print the version number (as major.minor.revision) and exit.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-lossless
|
||||||
|
Encode the image without any loss.
|
||||||
|
.TP
|
||||||
|
.BI \-near_lossless " int
|
||||||
|
Use near-lossless image preprocessing. This option adjusts pixel values
|
||||||
|
to help compressibility, but has minimal impact on the visual quality.
|
||||||
|
It triggers lossless compression mode automatically.
|
||||||
|
Range is 0 (maximum preprocessing) to 100 (no preprocessing, the default).
|
||||||
|
.TP
|
||||||
.BI \-q " float
|
.BI \-q " float
|
||||||
Specify the compression factor for RGB channels between 0 and 100. The default
|
Specify the compression factor for RGB channels between 0 and 100. The default
|
||||||
is 75.
|
is 75.
|
||||||
@ -59,13 +68,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
|
Lossless compression of alpha is achieved using a value of 100, while the lower
|
||||||
values result in a lossy compression. The default is 100.
|
values result in a lossy compression. The default is 100.
|
||||||
.TP
|
.TP
|
||||||
.BI \-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.
|
|
||||||
Higher value will increase the strength of the filtering process applied
|
|
||||||
after decoding the picture. The higher the value the smoother the picture will
|
|
||||||
appear. Typical values are usually in the range of 20 to 50.
|
|
||||||
.TP
|
|
||||||
.BI \-preset " string
|
.BI \-preset " string
|
||||||
Specify a set of pre-defined parameters to suit a particular type of
|
Specify a set of pre-defined parameters to suit a particular type of
|
||||||
source material. Possible values are: \fBdefault\fP, \fBphoto\fP,
|
source material. Possible values are: \fBdefault\fP, \fBphoto\fP,
|
||||||
@ -74,13 +76,6 @@ source material. Possible values are: \fBdefault\fP, \fBphoto\fP,
|
|||||||
\fB\-q\fP one), this option should preferably appear first in the
|
\fB\-q\fP one), this option should preferably appear first in the
|
||||||
order of the arguments.
|
order of the arguments.
|
||||||
.TP
|
.TP
|
||||||
.BI \-sns " int
|
|
||||||
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.
|
|
||||||
.TP
|
|
||||||
.BI \-m " int
|
.BI \-m " int
|
||||||
Specify the compression method to use. This parameter controls the
|
Specify the compression method to use. This parameter controls the
|
||||||
trade off between encoding speed and the compressed file size and quality.
|
trade off between encoding speed and the compressed file size and quality.
|
||||||
@ -90,11 +85,15 @@ additional encoding possibilities and decide on the quality gain.
|
|||||||
Lower value can result in faster processing time at the expense of
|
Lower value can result in faster processing time at the expense of
|
||||||
larger file size and lower compression quality.
|
larger file size and lower compression quality.
|
||||||
.TP
|
.TP
|
||||||
.B \-jpeg_like
|
.BI \-resize " width height
|
||||||
Change the internal parameter mapping to better match the expected size
|
Resize the source to a rectangle with size \fBwidth\fP x \fBheight\fP.
|
||||||
of JPEG compression. This flag will generally produce an output file of
|
If either (but not both) of the \fBwidth\fP or \fBheight\fP parameters is 0,
|
||||||
similar size to its JPEG equivalent (for the same \fB\-q\fP setting), but
|
the value will be calculated preserving the aspect-ratio.
|
||||||
with less visual distortion.
|
.TP
|
||||||
|
.BI \-crop " x_position y_position width height
|
||||||
|
Crop the source to a rectangle with top-left corner at coordinates
|
||||||
|
(\fBx_position\fP, \fBy_position\fP) and size \fBwidth\fP x \fBheight\fP.
|
||||||
|
This cropping area must be fully contained within the source rectangle.
|
||||||
.TP
|
.TP
|
||||||
.B \-mt
|
.B \-mt
|
||||||
Use multi-threading for encoding, if possible. This option is only effective
|
Use multi-threading for encoding, if possible. This option is only effective
|
||||||
@ -108,13 +107,46 @@ different in size and distortion. This flag is only effective for methods
|
|||||||
some side effects on the bitstream: it forces certain bitstream features
|
some side effects on the bitstream: it forces certain bitstream features
|
||||||
like number of partitions (forced to 1). Note that a more detailed report
|
like number of partitions (forced to 1). Note that a more detailed report
|
||||||
of bitstream size is printed by \fBcwebp\fP when using this option.
|
of bitstream size is printed by \fBcwebp\fP when using this option.
|
||||||
|
|
||||||
|
.SS LOSSY OPTIONS
|
||||||
|
These options are only effective when doing lossy encoding (the default, with
|
||||||
|
or without alpha).
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI \-size " int
|
||||||
|
Specify a target size (in bytes) to try and reach for the compressed output.
|
||||||
|
Compressor will make several pass of partial encoding in order to get as
|
||||||
|
close as possible to this target.
|
||||||
|
.TP
|
||||||
|
.BI \-psnr " float
|
||||||
|
Specify a target PSNR (in dB) to try and reach for the compressed output.
|
||||||
|
Compressor will make several pass of partial encoding in order to get as
|
||||||
|
close as possible to this target.
|
||||||
|
.TP
|
||||||
|
.BI \-pass " int
|
||||||
|
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
|
.TP
|
||||||
.B \-af
|
.B \-af
|
||||||
Turns auto-filter on. This algorithm will spend additional time optimizing
|
Turns auto-filter on. This algorithm will spend additional time optimizing
|
||||||
the filtering strength to reach a well-balanced quality.
|
the filtering strength to reach a well-balanced quality.
|
||||||
|
.TP
|
||||||
|
.B \-jpeg_like
|
||||||
|
Change the internal parameter mapping to better match the expected size
|
||||||
|
of JPEG compression. This flag will generally produce an output file of
|
||||||
|
similar size to its JPEG equivalent (for the same \fB\-q\fP setting), but
|
||||||
|
with less visual distortion.
|
||||||
|
|
||||||
.SH ADDITIONAL OPTIONS
|
.TP
|
||||||
More advanced options are:
|
Advanced options:
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI \-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.
|
||||||
|
Higher value will increase the strength of the filtering process applied
|
||||||
|
after decoding the picture. The higher the value the smoother the picture will
|
||||||
|
appear. Typical values are usually in the range of 20 to 50.
|
||||||
.TP
|
.TP
|
||||||
.BI \-sharpness " int
|
.BI \-sharpness " int
|
||||||
Specify the sharpness of the filtering (if used).
|
Specify the sharpness of the filtering (if used).
|
||||||
@ -128,6 +160,13 @@ Use strong filtering (if filtering is being used thanks to the
|
|||||||
Disable strong filtering (if filtering is being used thanks to the
|
Disable strong filtering (if filtering is being used thanks to the
|
||||||
\fB\-f\fP option) and use simple filtering instead.
|
\fB\-f\fP option) and use simple filtering instead.
|
||||||
.TP
|
.TP
|
||||||
|
.BI \-sns " int
|
||||||
|
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.
|
||||||
|
.TP
|
||||||
.BI \-segments " int
|
.BI \-segments " int
|
||||||
Change the number of partitions to use during the segmentation of the
|
Change the number of partitions to use during the segmentation of the
|
||||||
sns algorithm. Segments should be in range 1 to 4. Default value is 4.
|
sns algorithm. Segments should be in range 1 to 4. Default value is 4.
|
||||||
@ -152,40 +191,45 @@ useful in case the 512k limit is reached and the following message is displayed:
|
|||||||
If using \fB-partition_limit\fP is not enough to meet the 512k constraint, one
|
If using \fB-partition_limit\fP is not enough to meet the 512k constraint, one
|
||||||
should use less segments in order to save more header bits per macroblock.
|
should use less segments in order to save more header bits per macroblock.
|
||||||
See the \fB-segments\fP option.
|
See the \fB-segments\fP option.
|
||||||
|
|
||||||
|
.SS LOGGING OPTIONS
|
||||||
|
These options control the level of output:
|
||||||
.TP
|
.TP
|
||||||
.BI \-size " int
|
.B \-v
|
||||||
Specify a target size (in bytes) to try and reach for the compressed output.
|
Print extra information (encoding time in particular).
|
||||||
Compressor will make several pass of partial encoding in order to get as
|
|
||||||
close as possible to this target.
|
|
||||||
.TP
|
.TP
|
||||||
.BI \-psnr " float
|
.B \-print_psnr
|
||||||
Specify a target PSNR (in dB) to try and reach for the compressed output.
|
Compute and report average PSNR (Peak-Signal-To-Noise ratio).
|
||||||
Compressor will make several pass of partial encoding in order to get as
|
|
||||||
close as possible to this target.
|
|
||||||
.TP
|
.TP
|
||||||
.BI \-pass " int
|
.B \-print_ssim
|
||||||
Set a maximum number of passes to use during the dichotomy used by
|
Compute and report average SSIM (structural similarity
|
||||||
options \fB\-size\fP or \fB\-psnr\fP. Maximum value is 10.
|
metric, see http://en.wikipedia.org/wiki/SSIM for additional details).
|
||||||
.TP
|
.TP
|
||||||
.BI \-resize " width height
|
.B \-print_lsim
|
||||||
Resize the source to a rectangle with size \fBwidth\fP x \fBheight\fP.
|
Compute and report local similarity metric (sum of lowest error amongst the
|
||||||
If either (but not both) of the \fBwidth\fP or \fBheight\fP parameters is 0,
|
collocated pixel neighbors).
|
||||||
the value will be calculated preserving the aspect-ratio.
|
|
||||||
.TP
|
.TP
|
||||||
.BI \-crop " x_position y_position width height
|
.B \-progress
|
||||||
Crop the source to a rectangle with top-left corner at coordinates
|
Report encoding progress in percent.
|
||||||
(\fBx_position\fP, \fBy_position\fP) and size \fBwidth\fP x \fBheight\fP.
|
.TP
|
||||||
This cropping area must be fully contained within the source rectangle.
|
.B \-quiet
|
||||||
|
Do not print anything.
|
||||||
|
.TP
|
||||||
|
.B \-short
|
||||||
|
Only print brief information (output file size and PSNR) for testing purpose.
|
||||||
|
.TP
|
||||||
|
.BI \-map " int
|
||||||
|
Output additional ASCII-map of encoding information. Possible map values
|
||||||
|
range from 1 to 6. This is only meant to help debugging.
|
||||||
|
|
||||||
|
.SS ADDITIONAL OPTIONS
|
||||||
|
More advanced options are:
|
||||||
.TP
|
.TP
|
||||||
.BI \-s " width height
|
.BI \-s " width height
|
||||||
Specify that the input file actually consists of raw Y'CbCr samples following
|
Specify that the input file actually consists of raw Y'CbCr samples following
|
||||||
the ITU-R BT.601 recommendation, in 4:2:0 linear format.
|
the ITU-R BT.601 recommendation, in 4:2:0 linear format.
|
||||||
The luma plane has size \fBwidth\fP x \fBheight\fP.
|
The luma plane has size \fBwidth\fP x \fBheight\fP.
|
||||||
.TP
|
.TP
|
||||||
.BI \-map " int
|
|
||||||
Output additional ASCII-map of encoding information. Possible map values
|
|
||||||
range from 1 to 6. This is only meant to help debugging.
|
|
||||||
.TP
|
|
||||||
.BI \-pre " int
|
.BI \-pre " int
|
||||||
Specify some pre-processing steps. Using a value of '2' will trigger
|
Specify some pre-processing steps. Using a value of '2' will trigger
|
||||||
quality-dependent pseudo-random dithering during RGBA->YUVA conversion
|
quality-dependent pseudo-random dithering during RGBA->YUVA conversion
|
||||||
@ -215,15 +259,6 @@ afterward reset to the opaque value 255.
|
|||||||
.B \-noalpha
|
.B \-noalpha
|
||||||
Using this option will discard the alpha channel.
|
Using this option will discard the alpha channel.
|
||||||
.TP
|
.TP
|
||||||
.B \-lossless
|
|
||||||
Encode the image without any loss.
|
|
||||||
.TP
|
|
||||||
.BI \-near_lossless " int
|
|
||||||
Use near-lossless image preprocessing. This option adjusts pixel values
|
|
||||||
to help compressibility, but has minimal impact on the visual quality.
|
|
||||||
It triggers lossless compression mode automatically.
|
|
||||||
Range is 0 (maximum preprocessing) to 100 (no preprocessing, the default).
|
|
||||||
.TP
|
|
||||||
.BI \-hint " string
|
.BI \-hint " string
|
||||||
Specify the hint about input image type. Possible values are:
|
Specify the hint about input image type. Possible values are:
|
||||||
\fBphoto\fP, \fBpicture\fP or \fBgraph\fP.
|
\fBphoto\fP, \fBpicture\fP or \fBgraph\fP.
|
||||||
@ -238,29 +273,6 @@ Note: each input format may not support all combinations.
|
|||||||
.TP
|
.TP
|
||||||
.B \-noasm
|
.B \-noasm
|
||||||
Disable all assembly optimizations.
|
Disable all assembly optimizations.
|
||||||
.TP
|
|
||||||
.B \-v
|
|
||||||
Print extra information (encoding time in particular).
|
|
||||||
.TP
|
|
||||||
.B \-print_psnr
|
|
||||||
Compute and report average PSNR (Peak-Signal-To-Noise ratio).
|
|
||||||
.TP
|
|
||||||
.B \-print_ssim
|
|
||||||
Compute and report average SSIM (structural similarity
|
|
||||||
metric, see http://en.wikipedia.org/wiki/SSIM for additional details).
|
|
||||||
.TP
|
|
||||||
.B \-print_lsim
|
|
||||||
Compute and report local similarity metric (sum of lowest error amongst the
|
|
||||||
collocated pixel neighbors).
|
|
||||||
.TP
|
|
||||||
.B \-progress
|
|
||||||
Report encoding progress in percent.
|
|
||||||
.TP
|
|
||||||
.B \-quiet
|
|
||||||
Do not print anything.
|
|
||||||
.TP
|
|
||||||
.B \-short
|
|
||||||
Only print brief information (output file size and PSNR) for testing purpose.
|
|
||||||
|
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Please report all bugs to our issue tracker:
|
Please report all bugs to our issue tracker:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user