DWEBP(1)
π DWEBP(1) π
okay bestie, so this is the manual page for dwebp, a General Commands Manual situation. buckle up, it's actually so useful π«Ά
β¨ NAME β¨
dwebp β decompress a WebP file to an image file
π¦ SYNOPSIS π¦
dwebp [options] input_file.webp
πΈ DESCRIPTION πΈ
This manual page documents the dwebp command. yes it's giving very "official documentation" energy, we love that for us.
So basically: dwebp decompresses WebP files into PNG, PAM, PPM or PGM images. that's the whole job. that's the vibe. π
π¨ Note: Animated WebP files are not supported. like, at all. don't come for me, that's just the rules π
π OPTIONS π
The basic options are:
-hβ Print usage summary. the lil "what do I do again" button.-versionβ Print the version number (asmajor.minor.revision) and exit. cute lil receipt of what you're running β¨-ostring β Specify the name of the output file (as PNG format by default). Using"-"as output name will direct output to'stdout'. so if you want it piped somewhere instead of in a file, you know what to do π--string β Explicitly specify the input file. This option is useful if the input file starts with an'-'for instance. This option must appear last. Any other options afterward will be ignored. If the input file is"-", the data will be read fromstdininstead of a file. lowkey the bodyguard option fr fr π‘οΈ-bmpβ Change the output format to uncompressed BMP.-tiffβ Change the output format to uncompressed TIFF.-pamβ Change the output format to PAM (retains alpha). keeps the transparency, queen π-ppmβ Change the output format to PPM (discards alpha). bye bye transparency π-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. nerd mode activated π§ͺ-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 purposes. also nerd mode, but planar π§-nofancyβ Don't use the fancy upscaler for YUV420. This may lead to jaggy edges (especially the red ones), but should be faster. sacrificing pretty red edges for speed, a trade as old as time π-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. it's giving "I know this is wrong but it's fast" energy π-ditherstrength β Specify a dithering strength between0and100. Dithering is a post-processing effect applied to chroma components in lossy compression. It helps by smoothing gradients and avoiding banding artifacts. so smooth, so gradient, so slay π-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. translucent AND smooth? iconic β¨-noditherβ Disable all dithering (default). no dithering, no notes.-mtβ Use multi-threading for decoding, if possible. she's doing several things at once and honestly? same π-cropx_position y_position width height β Crop the decoded picture to a rectangle with top-left corner at coordinates (x_position, y_position) and size width x height. 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 before any scaling. order matters, bestie π-flipβ Flip decoded image vertically (can be useful for OpenGL textures for instance). upside down moment π-resize,-scalewidth height β Rescale the decoded picture to dimension width x height. 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 after cropping. If either (but not both) of the width or height parameters is0, the value will be calculated preserving the aspect-ratio. tiny version of the girlboss image, we love a thumbnail era π-quietβ Do not print anything. π€«-vβ Print extra information (decoding time in particular). the receipts, the stats, the gossip π-noasmβ Disable all assembly optimizations. raw dogging the CPU, respect π«‘
π EXIT STATUS π
If there were no problems during execution, dwebp exits with the value of the C constant EXIT_SUCCESS. This is usually zero. so 0 = we ate, no crumbs π
If an error occurs, dwebp exits with the value of the C constant EXIT_FAILURE. This is usually one. so 1 = it's giving flop, something went wrong π
π EXAMPLES π
look bestie, actual copy-pasteable examples, we love a demo:
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
see that third one? that's the -- bodyguard option doing its job for a file literally named ---picture.webp. and the fourth one is straight-up pipe girlie behaviour π«Ά
π AUTHORS π
dwebp is a part of libwebp and was written by the WebP team. The latest source tree is available at https://chromium.googlesource.com/webm/libwebp
This manual page was written by Pascal Massimino <pascal.massimino@gmail.com>, for the Debian project (and may be used by others). shoutout Pascal, real one π«Ά
π REPORTING BUGS π
Please report all bugs to the issue tracker: https://issues.webmproject.org
Patches welcome! See this page to get started: https://www.webmproject.org/code/contribute/submitting-patches/
(they literally say "patches welcome" β the invite is open, bestie, go be the main character of open source π )
π₯ SEE ALSO π₯
cwebp(1), gif2webp(1), webpmux(1)
Please refer to https://developers.google.com/speed/webp/ for additional information.
π Output file format details π
- PAM:
http://netpbm.sourceforge.net/doc/pam.html - PGM:
http://netpbm.sourceforge.net/doc/pgm.html - PPM:
http://netpbm.sourceforge.net/doc/ppm.html - PNG:
http://www.libpng.org/pub/png/png-sitemap.html#info
and that's the whole page, no cap β¨ this was DWEBP(1), a General Commands Manual, last updated July 18, 2024 β so go forth, decompress responsibly, and remember: animated WebP files are still not supported, so don't even try it π€ periodt π
π¦ where this page comes from
- alpine 3.22: libwebp-doc 1.5.0-r0 Β· BSD-3-Clause
- alpine 3.23: libwebp-doc 1.6.0-r0 Β· BSD-3-Clause
- alpine 3.24: libwebp-doc 1.6.0-r0 Β· BSD-3-Clause
- arch rolling: libwebp 1.6.0-2 Β· BSD-3-Clause
- debian trixie: webp 1.5.0-0.1 Β· BSD-3-Clause
- fedora 43: libwebp-tools 1.6.0-2.fc43 Β· Apache-2.0 AND LicenseRef-scancode-google-patent-license-webm AND BSD-3-Clause AND FSFULLRWD
- fedora 44: libwebp-tools 1.6.0-3.fc44 Β· Apache-2.0 AND BSD-3-Clause WITH AdditionRef-WebM-patent-license AND BSD-3-Clause AND FSFULLRWD
- nixos 26.05: libwebp 1.6.0
- nixpkgs unstable: libwebp 1.6.0
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libwebp-tools 1.5.0-160000.2.2 Β· BSD-3-Clause
- ubuntu questing: webp 1.5.0-0.1
- ubuntu resolute: webp 1.5.0-0.1build1 Β· BSD-3-Clause
- ubuntu stonking: webp 1.6.0-0.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms