mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
oxipng: add page (#14274)
* Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
240ca42dd1
commit
818b3cc5ef
1 changed files with 36 additions and 0 deletions
36
pages/common/oxipng.md
Normal file
36
pages/common/oxipng.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# oxipng
|
||||
|
||||
> Losslessly improve compression of PNG files.
|
||||
> More information: <https://github.com/shssoichiro/oxipng>.
|
||||
|
||||
- Compress a PNG file (overwrites the file by default):
|
||||
|
||||
`oxipng {{path/to/file.png}}`
|
||||
|
||||
- Compress a PNG file and save the output to a new file:
|
||||
|
||||
`oxipng --out {{path/to/output.png}} {{path/to/file.png}}`
|
||||
|
||||
- Compress all PNG files in the current directory using multiple threads:
|
||||
|
||||
`oxipng "*.png"`
|
||||
|
||||
- Compress a file with a set optimization level (default is 2):
|
||||
|
||||
`oxipng --opt {{0|1|2|3|4|5|6|max}} {{path/to/file.png}}`
|
||||
|
||||
- Set the PNG interlacing type (`0` removes interlacing, `1` applies Adam7 interlacing, `keep` preserves existing interlacing; default is `0`):
|
||||
|
||||
`oxipng --interlace {{0|1|keep}} {{path/to/file.png}}`
|
||||
|
||||
- Perform additional optimization on images with an alpha channel:
|
||||
|
||||
`oxipng --alpha {{path/to/file.png}}`
|
||||
|
||||
- Use the much slower but stronger Zopfli compressor with max optimization:
|
||||
|
||||
`oxipng --zopfli --opt max {{path/to/file.png}}`
|
||||
|
||||
- Strip all non-critical metadata chunks:
|
||||
|
||||
`oxipng --strip all {{path/to/file.png}}`
|
Loading…
Add table
Reference in a new issue