2016-01-28 20:47:13 +00:00
|
|
|
# optipng
|
|
|
|
|
|
|
|
> PNG image file optimization utility.
|
|
|
|
|
|
|
|
- Compress a PNG with default settings:
|
|
|
|
|
2018-07-21 05:27:29 +01:00
|
|
|
`optipng {{path/to/file.png}}`
|
2016-01-28 20:47:13 +00:00
|
|
|
|
2016-01-28 21:07:49 +00:00
|
|
|
- Compress a PNG with best compression:
|
2016-01-28 20:47:13 +00:00
|
|
|
|
2018-07-21 05:27:29 +01:00
|
|
|
`optipng -o{{7}} {{path/to/file.png}}`
|
2016-01-28 20:47:13 +00:00
|
|
|
|
2016-01-28 21:07:49 +00:00
|
|
|
- Compress a PNG with fastest compression:
|
2016-01-28 20:47:13 +00:00
|
|
|
|
2018-07-21 05:27:29 +01:00
|
|
|
`optipng -o{{0}} {{path/to/file.png}}`
|
2016-01-28 20:47:13 +00:00
|
|
|
|
|
|
|
- Compress a PNG and add interlacing:
|
|
|
|
|
2018-07-21 05:27:29 +01:00
|
|
|
`optipng -i {{1}} {{path/to/file.png}}`
|
|
|
|
|
|
|
|
- Compress a PNG and preserve all metadata (including file timestamps):
|
|
|
|
|
|
|
|
`optipng -preserve {{path/to/file.png}}`
|
2016-01-28 20:47:13 +00:00
|
|
|
|
|
|
|
- Compress a PNG and remove all metadata:
|
|
|
|
|
2018-07-21 05:27:29 +01:00
|
|
|
`optipng -strip all {{path/to/file.png}}`
|