1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-22 07:04:05 +02:00
tldr/pages/common/pngquant.md
Managor 99c7af4917
*: use a more specific more info link, org domain (#17699)
Mass update for more specific "more info" links
2025-08-16 11:12:49 -07:00

993 B

pngquant

PNG converter and lossy image compressor. More information: https://manned.org/pngquant.

  • 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}}