1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/optipng.md

28 lines
569 B
Markdown
Raw Normal View History

2016-01-28 15:47:13 -05:00
# optipng
> PNG image file optimization utility.
- Compress a PNG with default settings:
`optipng {{path/to/file.png}}`
2016-01-28 15:47:13 -05:00
2016-01-28 16:07:49 -05:00
- Compress a PNG with best compression:
2016-01-28 15:47:13 -05:00
`optipng -o{{7}} {{path/to/file.png}}`
2016-01-28 15:47:13 -05:00
2016-01-28 16:07:49 -05:00
- Compress a PNG with fastest compression:
2016-01-28 15:47:13 -05:00
`optipng -o{{0}} {{path/to/file.png}}`
2016-01-28 15:47:13 -05:00
- Compress a PNG and add interlacing:
`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 15:47:13 -05:00
- Compress a PNG and remove all metadata:
`optipng -strip all {{path/to/file.png}}`