Forrest logo
tool overview
On this page you find all important commands for the CLI tool pngquant. If the command you are looking for is missing please ask our AI.

pngquant

pngquant is a command line tool used for quantizing and compressing PNG images. It is primarily designed to reduce the file size of PNG images while maintaining visual quality. The tool achieves this by implementing a combination of lossy and lossless compression techniques.

With pngquant, users can convert 24-bit PNG images into 8-bit indexed-color PNG images, thus reducing the number of colors in the image while optimizing the palette. This process significantly reduces the file size without causing a noticeable loss in image quality.

The tool offers various customization options, allowing users to control the level of compression and final image quality. It supports dithering, a technique used to mitigate color banding and produce smoother gradients in the converted images. Additionally, pngquant provides options to adjust the speed of the compression process, allowing users to strike a balance between the compression time and the resulting file size.

Pngquant is compatible with Windows, macOS, and Linux operating systems, making it accessible for a wide range of users. It can be used as a standalone command line tool or integrated into automated workflows and scripts.

This tool is popular among web developers and designers as it helps to optimize PNG images for web usage, reducing load times and bandwidth usage while maintaining acceptable image quality. It is also useful for reducing the file size of images used in mobile applications, where smaller sizes are crucial for improving performance.

Overall, pngquant is a powerful and efficient command line tool for reducing the file size of PNG images through quantization and compression techniques. It provides users with customization options and is widely used for optimizing images for web and mobile applications.

List of commands for pngquant:

  • pngquant:tldr:02e28 pngquant: Compress a specific PNG and remove metadata.
    $ pngquant --strip ${filename-png}
    try on your machine
    explain this command
  • pngquant:tldr:040bf pngquant: Compress a specific PNG and save it to the given path.
    $ pngquant ${filename-png} --output ${filename-png}
    try on your machine
    explain this command
  • pngquant:tldr:431c3 pngquant: Try to compress a specific PNG with custom quality (skip if below the min value).
    $ pngquant --quality ${0-100} ${filename-png}
    try on your machine
    explain this command
  • pngquant:tldr:5bf2d pngquant: Compress a specific PNG and show progress.
    $ pngquant --verbose ${filename-png}
    try on your machine
    explain this command
  • pngquant:tldr:895a0 pngquant: Compress a specific PNG and skip if the file is larger than the original.
    $ pngquant --skip-if-larger ${filename-png}
    try on your machine
    explain this command
  • pngquant:tldr:d3be9 pngquant: Compress a specific PNG as much as possible and write result to a new file.
    $ pngquant ${filename-png}
    try on your machine
    explain this command
  • pngquant:tldr:da0e6 pngquant: Compress a specific PNG with the number of colors reduced to 64.
    $ pngquant ${64} ${filename-png}
    try on your machine
    explain this command
  • pngquant:tldr:ff92d pngquant: Compress a specific PNG and override original.
    $ pngquant --ext .png --force ${filename-png}
    try on your machine
    explain this command
tool overview