1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

dwebp: add more examples (#6359)

This commit is contained in:
marchersimon 2021-08-18 11:24:53 +02:00 committed by GitHub
parent b37f341b58
commit fe35df460c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,26 @@
> Animated WebP files are not supported.
> More information: <https://developers.google.com/speed/webp/docs/dwebp/>.
- Convert a `webp` file to a `png` file:
- Convert a `webp` file into a `png` file:
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}}`
- Convert a `webp` file into a specific filetype:
`dwebp {{path/to/input.webp}} -bmp|-tiff|-pam|-ppm|-pgm|-yuv -o {{path/to/output}}`
- Convert a `webp` file, using multi-threading if possible:
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -mt`
- Convert a `webp` file, but also crop and scale at the same time:
`dwebp {{input.webp}} -o {{output.png}} -crop {{x_pos}} {{y_pos}} {{width}} {{height}} -scale {{width}} {{height}}`
- Convert a `webp` file and flip the output:
`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:
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -nofilter`