How To Install Pngquant On Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS?

How To Install Pngquant On Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS?

pngquant

PNG (Portable Network Graphics) image optimising utility

Maintainer: Debian PhotoTools Maintainers



Section: graphics

Install pngquant

  • Debian apt-get install pngquant Click to copy
  • Ubuntu apt-get install pngquant Click to copy
  • Alpine OS apk add pngquant Click to copy
  • Arch Linux pacman -S pngquant Click to copy
  • Kali Linux apt-get install pngquant Click to copy
  • Fedora dnf install pngquant Click to copy
  • Raspbian apt-get install pngquant Click to copy
  • macOS brew install pngquant Click to copy

pngquant

PNG (Portable Network Graphics) image optimising utility

pngquant is a command-line conversion utility to quantize and dither truecolor PNG images, especially those with a full alpha channel, down to 8-bit (or smaller) RGBA-palette PNGs. Such images are usually two to four times smaller than the full 32-bit versions, and partial transparency is preserved quite nicely. This makes pngquant especially useful both for Web sites and for PlayStation 2 development, where one of the texture formats is RGBA-palette-based (though not PNG-compressed). This is the same technique used for many of the images on the Miscellaneous Transparent PNGs page (http://www.libpng.org/pub/png/pngs-img.html), and the results are often indistinguishable from the original, truecolor PNG images. Optimizers (like pngcrush and optipng) optimize the compression, usually losslessly, while pngquant quantizes colors down to 256 (or fewer) distinct RGBA combinations, which is lossy.

To install the latest version of pngquant in your favorite operating system just copy the pngquant installation command from above and paste it into terminal. It will download and install the latest version of pngquant 2026 package in your OS.