macOS
brew install optipnglocal Homebrew formula metadata
sudo port install optipngMacPorts ports tree · graphics/optipng/Portfile · source: api.github.com
brew
PNG file optimizer. Version 7.9.1 via Homebrew; verified from local package data.
install
brew install optipnglocal Homebrew formula metadata
sudo port install optipngMacPorts ports tree · graphics/optipng/Portfile · source: api.github.com
sudo apk add optipngAlpine Linux edge package indexes · optipng · source: dl-cdn.alpinelinux.org
sudo apt install optipngDebian stable package indexes · optipng · source: deb.debian.org
sudo dnf install optipngFedora Rawhide package metadata · optipng · source: dl.fedoraproject.org
nix profile install nixpkgs#optipngnixpkgs package indexes · pkgs/by-name/op/optipng/package.nix · source: api.github.com
sudo pacman -S optipngArch Linux sync databases · optipng · source: geo.mirror.pkgbuild.com
sudo zypper install optipngopenSUSE Tumbleweed package metadata · optipng · source: download.opensuse.org
choco install OptiPNGChocolatey community package catalog · OptiPNG · source: community.chocolatey.org
scoop install main/optipngScoop official bucket manifest trees · bucket/optipng.json · source: api.github.com
winget install --id OptiPNG.OptiPNG -eWindows Package Manager source index · OptiPNG.OptiPNG · source: cdn.winget.microsoft.com
overview
PNG file optimizer
history
OptiPNG is a long-running command-line optimizer for PNG files. It recompresses images without information loss, can convert BMP, GIF, PNM, and TIFF inputs to optimized PNG, and also performs PNG integrity checks and corrections.
Cosmin Truta introduced OptiPNG on 2001-12-10 as a PNG IDAT recompression tool that repeatedly tried zlib compression and strategy levels together with PNG delta filters. Version 0.3, announced on 2003-02-24, was the first public release and added documentation, many user options, lossless image-type reduction, zlib memory-level iteration, and lower-memory IDAT handling.
The early 0.x series steadily expanded from pure PNG recompression into a practical asset-pipeline utility. Version 0.5 added support for external input formats BMP, GIF, and PNM in 2006; version 0.5.3 added basic TIFF import; version 0.6 added compressed BMP support, APNG safety behavior, and recovery for incomplete IDAT data.
Later releases were shaped as much by security and dependency maintenance as by compression features. The history records repeated libpng and zlib upgrades, parser fixes for GIF, TIFF, and BMP handling, build-system modernization, and, in 2025, the jump from 0.7.9 to 7.9.1 with CMake support and an AsciiDoc manual.
OptiPNG became one of the standard lossless PNG optimizers distributed by operating-system package managers. The input metadata lists packages across Alpine, Homebrew, Chocolatey, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, winget, and openSUSE, reflecting its role as a common build and release dependency rather than a single-platform image utility.
Developers and designers use `optipng` to shrink PNG assets for websites, applications, documentation, and release bundles while preserving image content. The tool matters in automated pipelines because it is a deterministic CLI: pass files in, choose an optimization level or output location, and receive optimized PNGs suitable for version-controlled assets or packaging.
The underlying PNG optimization problem is subtle: PNG size depends on color type reductions, palette reductions, row filters, zlib strategy, and Huffman-buffer behavior. OptiPNG's package value is that it automates repeated trials over that search space, giving build systems a boring command instead of bespoke compression experiments.
OptiPNG is a classic package-nerd utility: small, C-based, dependency-sensitive, and useful precisely because package ecosystems can put it everywhere. Its revision history is a miniature tour of real-world file-format tooling, where security fixes in image parsers and updates to bundled compression libraries are as important as byte savings.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
optipng | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://optipng.sourceforge.net/
install metadata
| Package key | brew:optipng |
|---|---|
| Version | 7.9.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/optipng |
| Homepage | https://optipng.sourceforge.net/ |
| Upstream docs | https://optipng.sourceforge.net/ |
| License | Zlib |
| Source archive | https://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-7.9.1/optipng-7.9.1.tar.gz |
| Dependencies | libpng |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | optipng |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
optipng 0.7.8+ds-1+b1
advanced PNG (Portable Network Graphics) optimizer
https://optipng.sourceforge.net/
sudo apt install optipngoptipng
nix profile install nixpkgs#optipngoptipng 0.7.8+ds-1build2
advanced PNG (Portable Network Graphics) optimizer
https://optipng.sourceforge.net/
sudo apt install optipngoptipng 7.9.1-r1
Compresses PNG files to a smaller size, without losing any information.
https://optipng.sourceforge.net/
sudo apk add optipngoptipng-doc 7.9.1-r1
Compresses PNG files to a smaller size, without losing any information. (documentation)
https://optipng.sourceforge.net/
sudo apk add optipng-docoptipng 7.9.1-3.fc44
PNG optimizer and converter
http://optipng.sourceforge.net/
sudo dnf install optipngoptipng 7.9.1-1
Compresses PNG files to a smaller size, without losing any information.
http://optipng.sourceforge.net/
sudo pacman -S optipngoptipng 7.9.1-1.4
A PNG File Compressor
https://optipng.sourceforge.net/
sudo zypper install optipngoptipng
sudo port install optipngOptiPNG
choco install OptiPNGmain/optipng
scoop install main/optipngOptiPNG.OptiPNG
winget install --id OptiPNG.OptiPNG -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.