pngcrush

PNG compression utility. More information: <https://pmt.sourceforge.io/pngcrush>.

Install

All systems
curl cmd.cat/pngcrush.sh
Debian Debian
apt-get install pngcrush
Ubuntu
apt-get install pngcrush
Alpine
apk add pngcrush
Arch Arch Linux
pacman -S pngcrush
image/svg+xml Kali Linux
apt-get install pngcrush
CentOS
yum install pngcrush
Fedora
dnf install pngcrush
Windows (WSL2)
sudo apt-get update sudo apt-get install pngcrush
OS X
brew install pngcrush
Raspbian
apt-get install pngcrush
Docker
docker run cmd.cat/pngcrush pngcrush powered by Commando

PNG compression utility. More information: <https://pmt.sourceforge.io/pngcrush>.

  • Compress a PNG file:
    pngcrush in.png out.png
  • Compress all PNGs and output them to the specified directory:
    pngcrush -d path/to/output *.png
  • Compress PNG file with all 114 available algorithms and pick the best result:
    pngcrush -rem allb -brute -reduce in.png out.png

© tl;dr; authors and contributors