macOS
brew install optipnglocal Homebrew formula metadata
sudo port install optipngMacPorts ports tree · graphics/optipng/Portfile · 来源: api.github.com
安装
brew install optipnglocal Homebrew formula metadata
sudo port install optipngMacPorts ports tree · graphics/optipng/Portfile · 来源: api.github.com
sudo apk add optipngAlpine Linux edge package indexes · optipng · 来源: dl-cdn.alpinelinux.org
sudo apt install optipngDebian stable package indexes · optipng · 来源: deb.debian.org
sudo dnf install optipngFedora Rawhide package metadata · optipng · 来源: dl.fedoraproject.org
nix profile install nixpkgs#optipngnixpkgs package indexes · pkgs/by-name/op/optipng/package.nix · 来源: api.github.com
sudo pacman -S optipngArch Linux sync databases · optipng · 来源: geo.mirror.pkgbuild.com
sudo zypper install optipngopenSUSE Tumbleweed package metadata · optipng · 来源: download.opensuse.org
choco install OptiPNGChocolatey community package catalog · OptiPNG · 来源: community.chocolatey.org
scoop install main/optipngScoop official bucket manifest trees · bucket/optipng.json · 来源: api.github.com
winget install --id OptiPNG.OptiPNG -eWindows Package Manager source index · OptiPNG.OptiPNG · 来源: cdn.winget.microsoft.com
概览
PNG file optimizer
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
optipng | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://optipng.sourceforge.net/
安装元数据
| 软件包键 | brew:optipng |
|---|---|
| 版本 | 7.9.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/optipng |
| 主页 | https://optipng.sourceforge.net/ |
| 上游文档 | https://optipng.sourceforge.net/ |
| 许可证 | Zlib |
| 源码归档 | https://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-7.9.1/optipng-7.9.1.tar.gz |
| 依赖 | libpng |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.