# 使用 Homebrew, dnf, pacman 安装 gif2png

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

## 安装

```sh
sudo av install brew:gif2png
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gif2png
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install gif2png
```

  证据: Fedora Rawhide package metadata: gif2png from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S gif2png
```

  证据: Arch Linux sync databases: gif2png from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:gif2png
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gif2png>
- **版本:** 3.0.3
- **来源摘要:** Convert GIFs to PNGs
- **主页:** <http://www.catb.org/~esr/gif2png/>
- **上游文档:** <http://www.catb.org/~esr/gif2png/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://gitlab.com/esr/gif2png/-/archive/3.0.3/gif2png-3.0.3.tar.bz2>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gif2png (cli)
- web2png (cli)
- gif2png (别名)
- web2png (别名)

## 构建依赖

- go
- xmlto

## macOS 提供的库

- python

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0.3
- 本地数据: OK
- 上游仓库: http://www.catb.org/~esr/gif2png/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

gif2png is a classic image-conversion utility that converts GIF files to PNG and ships with `web2png`, a front end for converting web hierarchies and rewriting image references. It is strongly associated with the late-1990s move from GIF toward PNG on the open web.

### 项目历史

The project predates its GitLab hosting and has a long changelog preserved by Eric S. Raymond's project page. The NEWS file shows releases in 1999 leading up to version 2.0.0, which was marked ready for Burn All GIFs Day, a campaign-era milestone in PNG advocacy.

Development continued through portability, packaging, and correctness work: DocBook documentation in 2002, RPM and Freshmeat packaging updates in 2003, libpng and security fixes in the 2000s and 2010s, a simpler makefile after Autotools removal in 2015, a Go port in 2019, and Go module packaging in 2023.

### 采用历史

gif2png's adoption was rooted in a specific historical problem: GIF was ubiquitous but politically and technically contentious, while PNG offered a patent-free replacement for many web graphics. The utility gave web maintainers a batchable path to convert image assets and update references.

The package's continued presence in Homebrew, Fedora, Arch, and other packaging indexes reflects its role as a small, stable conversion tool rather than a large image suite. Users who need this exact conversion can install a purpose-built command instead of pulling in a broad graphics application.

### 使用方式

Practitioners use `gif2png` for file-level GIF to PNG conversion and `web2png` when converting a directory tree of web pages and image references. The README describes POSIX and Go build requirements, a regression test suite, and the `make check` workflow.

Typical use is archival cleanup, static-site maintenance, packaging tests around image conversion, or migration of old GIF-heavy web assets to PNG.

### 为什么软件包爱好者会关心

gif2png is package-nerd significant because it is old, focused, and still easy to package. Its changelog records decades of small portability and correctness fixes, including security hardening and a language-port transition from C-era tooling to Go while keeping the command-line identity intact.

### 时间线

- 1999: Version 2.0.0 was prepared for Burn All GIFs Day.
- 2002: Documentation masters moved to DocBook.
- 2003: RPM and Freshmeat packaging updates landed in the 2.5 series.
- 2012: A filename buffer overflow fix for CVE-2009-5018 was released.
- 2015: Autotools was removed in favor of a simple makefile.
- 2019: The code was ported to Go.
- 2023: The build was converted to a Go module.
- 2026: Version 3.0.4 updated web2png for Python 3.

### Related projects

- gif2png is related to PNG, GIF, libpng, web2png, Burn All GIFs Day, and small Unix-style image conversion utilities.

### 来源

- <http://www.catb.org/~esr/gif2png>
- <http://www.catb.org/~esr/gif2png/NEWS.adoc>
- <https://gitlab.com/esr/gif2png>
- <https://gitlab.com/esr/gif2png/-/tags>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gif2png
- **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:** head, stable

## 其他软件包管理器记录

- dnf - gif2png - 3.0.4-3.fc45: normalized package name match | Fedora Rawhide package metadata: gif2png from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A GIF to PNG converter | http://www.catb.org/~esr/gif2png/
- pacman - gif2png - 3.0.3-2: normalized package name match | Arch Linux sync databases: gif2png from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A GIF to PNG image format converter | http://www.catb.org/~esr/gif2png/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [xmlto](https://pkg.so/zh-hans/brew/xmlto/) - Build dependency declared by Homebrew.
- [pngpaste](https://pkg.so/zh-hans/brew/pngpaste/) - Shares pkgdb curated category or tags: cli, image-conversion, media, png.
- [jp2a](https://pkg.so/zh-hans/brew/jp2a/) - Shares pkgdb curated category or tags: cli, image-conversion, media, png.
- [icoutils](https://pkg.so/zh-hans/brew/icoutils/) - Shares pkgdb curated category or tags: cli, image-conversion, media, png.
- [png2ico](https://pkg.so/zh-hans/brew/png2ico/) - Shares pkgdb curated category or tags: cli, image-conversion, media, png.
- [tiff2png](https://pkg.so/zh-hans/brew/tiff2png/) - Shares pkgdb curated category or tags: cli, image-conversion, media, png.
- [apng2gif](https://pkg.so/zh-hans/brew/apng2gif/) - Shares pkgdb curated category or tags: cli, gif, image-conversion, media.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Shares pkgdb curated category or tags: cli, media, png.
- [giflib](https://pkg.so/zh-hans/brew/giflib/) - Shares pkgdb curated category or tags: cli, gif, media.

## Combined YAML source

View the package source record on GitHub. [combined/gif2png.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gif2png.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
