2025-03-14 21:59:59 -06:00
|
|
|
# pngquant
|
|
|
|
|
|
|
|
|
|
> PNG converter and lossy image compressor.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://manned.org/pngquant>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Compress a specific PNG as much as possible and write result to a new file:
|
|
|
|
|
|
|
|
|
|
`pngquant {{path/to/file.png}}`
|
|
|
|
|
|
|
|
|
|
- Compress a specific PNG and override original:
|
|
|
|
|
|
|
|
|
|
`pngquant --ext .png --force {{path/to/file.png}}`
|
|
|
|
|
|
|
|
|
|
- Try to compress a specific PNG with custom quality (skip if below the min value):
|
|
|
|
|
|
|
|
|
|
`pngquant --quality {{0-100}} {{path/to/file.png}}`
|
|
|
|
|
|
|
|
|
|
- Compress a specific PNG with the number of colors reduced to 64:
|
|
|
|
|
|
|
|
|
|
`pngquant {{64}} {{path/to/file.png}}`
|
|
|
|
|
|
|
|
|
|
- Compress a specific PNG and skip if the file is larger than the original:
|
|
|
|
|
|
|
|
|
|
`pngquant --skip-if-larger {{path/to/file.png}}`
|
|
|
|
|
|
|
|
|
|
- Compress a specific PNG and remove metadata:
|
|
|
|
|
|
|
|
|
|
`pngquant --strip {{path/to/file.png}}`
|
|
|
|
|
|
|
|
|
|
- Compress a specific PNG and save it to the given path:
|
|
|
|
|
|
|
|
|
|
`pngquant {{path/to/file.png}} --output {{path/to/file.png}}`
|
|
|
|
|
|
|
|
|
|
- Compress a specific PNG and show progress:
|
|
|
|
|
|
|
|
|
|
`pngquant --verbose {{path/to/file.png}}`
|