tldr/pages/common/dwebp.md

30 lines
995 B
Markdown
Raw Normal View History

2021-08-09 15:48:47 +01:00
# dwebp
> `dwebp` decompresses WebP files into PNG, PAM, PPM or PGM images.
> Animated WebP files are not supported.
> More information: <https://developers.google.com/speed/webp/docs/dwebp/>.
- Convert a WebP file into a PNG file:
2021-08-09 15:48:47 +01:00
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}}`
2021-08-18 10:24:53 +01:00
- Convert a WebP file into a specific filetype:
2021-08-18 10:24:53 +01:00
`dwebp {{path/to/input.webp}} -bmp|-tiff|-pam|-ppm|-pgm|-yuv -o {{path/to/output}}`
- Convert a WebP file, using multi-threading if possible:
2021-08-18 10:24:53 +01:00
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -mt`
- Convert a WebP file, but also crop and scale at the same time:
2021-08-18 10:24:53 +01:00
`dwebp {{input.webp}} -o {{output.png}} -crop {{x_pos}} {{y_pos}} {{width}} {{height}} -scale {{width}} {{height}}`
- Convert a WebP file and flip the output:
2021-08-18 10:24:53 +01:00
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -flip`
- Convert a WebP file and don't use in-loop filtering to speed up the decoding process:
2021-08-18 10:24:53 +01:00
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -nofilter`