tldr/pages/common/optipng.md

24 lines
414 B
Markdown
Raw Normal View History

2016-01-28 20:47:13 +00:00
# optipng
> PNG image file optimization utility.
- Compress a PNG with default settings:
`optipng {{file.png}}`
2016-01-28 21:07:49 +00:00
- Compress a PNG with best compression:
2016-01-28 20:47:13 +00:00
`optipng -o{{7}} {{file.png}}`
2016-01-28 21:07:49 +00:00
- Compress a PNG with fastest compression:
2016-01-28 20:47:13 +00:00
`optipng -o{{0}} {{file.png}}`
- Compress a PNG and add interlacing:
`optipng -i {{1}} {{file.png}}`
- Compress a PNG and remove all metadata:
`optipng -strip all {{file.png}}`