mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 12:55:43 +02:00
optipng: add preservation option (#2206)
This commit is contained in:
parent
9170ce572a
commit
deece664b1
1 changed files with 9 additions and 5 deletions
|
@ -4,20 +4,24 @@
|
||||||
|
|
||||||
- Compress a PNG with default settings:
|
- Compress a PNG with default settings:
|
||||||
|
|
||||||
`optipng {{file.png}}`
|
`optipng {{path/to/file.png}}`
|
||||||
|
|
||||||
- Compress a PNG with best compression:
|
- Compress a PNG with best compression:
|
||||||
|
|
||||||
`optipng -o{{7}} {{file.png}}`
|
`optipng -o{{7}} {{path/to/file.png}}`
|
||||||
|
|
||||||
- Compress a PNG with fastest compression:
|
- Compress a PNG with fastest compression:
|
||||||
|
|
||||||
`optipng -o{{0}} {{file.png}}`
|
`optipng -o{{0}} {{path/to/file.png}}`
|
||||||
|
|
||||||
- Compress a PNG and add interlacing:
|
- Compress a PNG and add interlacing:
|
||||||
|
|
||||||
`optipng -i {{1}} {{file.png}}`
|
`optipng -i {{1}} {{path/to/file.png}}`
|
||||||
|
|
||||||
|
- Compress a PNG and preserve all metadata (including file timestamps):
|
||||||
|
|
||||||
|
`optipng -preserve {{path/to/file.png}}`
|
||||||
|
|
||||||
- Compress a PNG and remove all metadata:
|
- Compress a PNG and remove all metadata:
|
||||||
|
|
||||||
`optipng -strip all {{file.png}}`
|
`optipng -strip all {{path/to/file.png}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue