Automic VaultAutomic Vault

brew

Install optipng with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

PNG file optimizer. Version 7.9.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install optipng

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install optipng

MacPorts ports tree · graphics/optipng/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add optipng

Alpine Linux edge package indexes · optipng · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install optipng

Debian stable package indexes · optipng · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install optipng

Fedora Rawhide package metadata · optipng · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#optipng

nixpkgs package indexes · pkgs/by-name/op/optipng/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S optipng

Arch Linux sync databases · optipng · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install optipng

openSUSE Tumbleweed package metadata · optipng · source: download.opensuse.org

Windows

Chocolateyverified · 92%
choco install OptiPNG

Chocolatey community package catalog · OptiPNG · source: community.chocolatey.org

Scoopverified · 92%
scoop install main/optipng

Scoop official bucket manifest trees · bucket/optipng.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id OptiPNG.OptiPNG -e

Windows Package Manager source index · OptiPNG.OptiPNG · source: cdn.winget.microsoft.com

overview

Package summary

PNG file optimizer

Commands and aliases

  • optipng

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2001-12-10: OptiPNG is introduced.
  • 2003-02-24: Version 0.3 is announced as the first public release.
  • 2006-01-14: Version 0.5 adds BMP, GIF, and PNM input support.
  • 2008-06-15: Version 0.6 adds compressed BMP support, APNG handling safeguards, and incomplete-IDAT recovery.
  • 2017-12-27: Version 0.7.7 fixes GIF and TIFF decoder vulnerabilities and updates libpng and zlib.
  • 2025-05-20: Version 7.9.1 updates libpng, enables SIMD-optimized libpng builds on selected platforms, adds CMake, and rewrites the manual.

Related projects

  • OptiPNG sits beside other PNG optimizers such as pngcrush and depends conceptually on the PNG format, Deflate, zlib, and libpng. Its own PNG-Tech article explains the filter, reduction, and zlib-strategy space that these tools explore.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
optipngcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version7.9.1
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://optipng.sourceforge.net/

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://optipng.sourceforge.net/none confidence

install metadata

Package metadata

Package keybrew:optipng
Version7.9.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/optipng
Homepagehttps://optipng.sourceforge.net/
Upstream docshttps://optipng.sourceforge.net/
LicenseZlib
Source archivehttps://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-7.9.1/optipng-7.9.1.tar.gz
Dependencieslibpng
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameoptipng
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

optipng 0.7.8+ds-1+b1

advanced PNG (Portable Network Graphics) optimizer

https://optipng.sourceforge.net/

sudo apt install optipng
  • Section: graphics
  • Architecture: amd64
  • Source Package: optipng
  • 3 dependencies
  • normalized package name match
  • Matched by: Optipng
Debian stable package indexes · deb.debian.org · Debian stable package indexes: optipng from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

optipng

nix profile install nixpkgs#optipng
  • normalized package name match
  • Matched by: Optipng
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/op/optipng/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

optipng 0.7.8+ds-1build2

advanced PNG (Portable Network Graphics) optimizer

https://optipng.sourceforge.net/

sudo apt install optipng
  • Section: graphics
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Optipng
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: optipng from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

optipng 7.9.1-r1

Compresses PNG files to a smaller size, without losing any information.

https://optipng.sourceforge.net/

sudo apk add optipng
  • License: Zlib
  • Architecture: x86_64
  • Source Package: optipng
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Optipng
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: optipng from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

optipng-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-doc
  • License: Zlib
  • Architecture: x86_64
  • Source Package: optipng
  • normalized package name match
  • Matched by: Optipng
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: optipng-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

optipng 7.9.1-3.fc44

PNG optimizer and converter

http://optipng.sourceforge.net/

sudo dnf install optipng
  • License: zlib
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: optipng
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Optipng
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: optipng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

optipng 7.9.1-1

Compresses PNG files to a smaller size, without losing any information.

http://optipng.sourceforge.net/

sudo pacman -S optipng
  • License: ZLIB
  • Architecture: x86_64
  • 3 dependencies
  • normalized package name match
  • Matched by: Optipng
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: optipng from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

optipng 7.9.1-1.4

A PNG File Compressor

https://optipng.sourceforge.net/

sudo zypper install optipng
  • License: Zlib
  • Category: Productivity/Archiving/Compression
  • Architecture: x86_64
  • Source Package: optipng
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Optipng
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: optipng from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

optipng

sudo port install optipng
  • normalized package name match
  • Matched by: Optipng
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/optipng/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

OptiPNG

choco install OptiPNG
  • normalized package name match
  • Matched by: Optipng
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: OptiPNG from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','openssh'
Scoop95%

main/optipng

scoop install main/optipng
  • normalized package name match
  • Matched by: Optipng
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/optipng.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

OptiPNG.OptiPNG

winget install --id OptiPNG.OptiPNG -e
  • normalized package name match
  • Matched by: Optipng
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: OptiPNG.OptiPNG from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment