# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 3.0.3
- **来源摘要:** Convert GIFs to PNGs
- **主页:** <http://www.catb.org/~esr/gif2png/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.0.3
## 项目历史与用法

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
