Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, chocolatey, scoop, winget 安装 optipng

查看 optipng 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install optipng

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install optipng

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add optipng

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

Debian apt已验证 · 92%
sudo apt install optipng

Debian stable package indexes · optipng · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install optipng

Fedora Rawhide package metadata · optipng · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#optipng

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

Arch Linux pacman已验证 · 92%
sudo pacman -S optipng

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

openSUSE zypper已验证 · 92%
sudo zypper install optipng

openSUSE Tumbleweed package metadata · optipng · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install OptiPNG

Chocolatey community package catalog · OptiPNG · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/optipng

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

Windows Package Manager已验证 · 92%
winget install --id OptiPNG.OptiPNG -e

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

概览

软件包摘要

PNG file optimizer

命令和别名

  • optipng

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
optipngcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本7.9.1
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://optipng.sourceforge.net/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://optipng.sourceforge.net/none 置信度

安装元数据

软件包元数据

软件包键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 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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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