How To Install Pngcrush?

How To Install Pngcrush?

pngcrush

PNG image compression utility.

Maintainer: Margarita Manterola



Section: graphics

Install pngcrush

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

PNG image compression utility.

How to use pngcrush?

Below are few example commands for pngcrush that you can use in the terminal.

Compress a PNG file:
pngcrush in.png out.pngClick to copy
Compress all PNGs and output to directory:
pngcrush -d path/to/output *.pngClick to copy
Compress PNG file with all 114 available algorithms and pick the best result:
pngcrush -rem allb -brute -reduce in.png out.pngClick to copy
Installing pngcrush command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of pngcrush 2026 package in your OS.