Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
cwebp Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cwebp
> Compress an image file to a WebP file.
> More information: <https://developers.google.com/speed/webp/docs/cwebp>.
- Compress a WebP file with default settings (q = 75) to the [o]utput file:
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}}`
- Compress a WebP file with the best [q]uality and largest file size:
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{100}}`
- Compress a WebP file with the worst [q]uality and smallest file size:
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{0}}`
- Compress a WebP file and apply resize to image:
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -resize {{width}} {{height}}`
- Compress a WebP file and drop alpha channel information:
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -noalpha`