blob: d4b60ed843fd20e7f755bc4ae45e0ea313895065 [file] [log] [blame]
.\" Hey, EMACS: -*- nroff -*-
.TH DWEBP 1 "June 23, 2016"
dwebp \- decompress a WebP file to an image file
.B dwebp
.RI [ options ] " input_file.webp
This manual page documents the
.B dwebp
\fBdwebp\fP decompresses WebP files into PNG, PAM, PPM or PGM images.
The basic options are:
.B \-h
Print usage summary.
.B \-version
Print the version number (as major.minor.revision) and exit.
.BI \-o " string
Specify the name of the output file (as PNG format by default).
Using "-" as output name will direct output to 'stdout'.
.BI \-\- " string
Explicitly specify the input file. This option is useful if the input
file starts with an '\-' for instance. This option must appear \fBlast\fP.
Any other options afterward will be ignored. If the input file is "\-",
the data will be read from \fIstdin\fP instead of a file.
.B \-bmp
Change the output format to uncompressed BMP.
.B \-tiff
Change the output format to uncompressed TIFF.
.B \-pam
Change the output format to PAM (retains alpha).
.B \-ppm
Change the output format to PPM (discards alpha).
.B \-pgm
Change the output format to PGM. The output consists of luma/chroma
samples instead of RGB, using the IMC4 layout. This option is mainly
for verification and debugging purposes.
.B \-yuv
Change the output format to raw YUV. The output consists of
luma/chroma-U/chroma-V samples instead of RGB, saved sequentially as
individual planes. This option is mainly for verification and debugging
.B \-nofancy
Don't use the fancy upscaler for YUV420. This may lead to jaggy
edges (especially the red ones), but should be faster.
.B \-nofilter
Don't use the in-loop filtering process even if it is required by
the bitstream. This may produce visible blocks on the non-compliant output,
but it will make the decoding faster.
.BI \-dither " strength
Specify a dithering \fBstrength\fP between 0 and 100. Dithering is a
post-processing effect applied to chroma components in lossy compression.
It helps by smoothing gradients and avoiding banding artifacts.
.BI \-alpha_dither
If the compressed file contains a transparency plane that was quantized
during compression, this flag will allow dithering the reconstructed plane
in order to generate smoother transparency gradients.
.B \-nodither
Disable all dithering (default).
.B \-mt
Use multi-threading for decoding, if possible.
.BI \-crop " x_position y_position width height
Crop the decoded picture 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.
The top-left corner will be snapped to even coordinates if needed.
This option is meant to reduce the memory needed for cropping large images.
Note: the cropping is applied \fIbefore\fP any scaling.
.B \-flip
Flip decoded image vertically (can be useful for OpenGL textures for instance).
\fB\-resize\fR, \fB\-scale\fI width height\fR
Rescale the decoded picture to dimension \fBwidth\fP x \fBheight\fP. This
option is mostly intended to reducing the memory needed to decode large images,
when only a small version is needed (thumbnail, preview, etc.). Note: scaling
is applied \fIafter\fP cropping.
If either (but not both) of the \fBwidth\fP or \fBheight\fP parameters is 0,
the value will be calculated preserving the aspect-ratio.
.B \-quiet
Do not print anything.
.B \-v
Print extra information (decoding time in particular).
.B \-noasm
Disable all assembly optimizations.
Please report all bugs to the issue tracker:
Patches welcome! See this page to get started:
dwebp picture.webp \-o output.png
dwebp picture.webp \-ppm \-o output.ppm
dwebp \-o output.ppm \-\- \-\-\-picture.webp
cat picture.webp | dwebp \-o \- \-\- \- > output.ppm
\fBdwebp\fP is a part of libwebp and was written by the WebP team.
The latest source tree is available at
This manual page was written by Pascal Massimino <>,
for the Debian project (and may be used by others).
.BR cwebp (1),
.BR gif2webp (1),
.BR webpmux (1)
Please refer to for additional
.SS Output file format details