# 使用 Homebrew, apt, Nix 安装 apng2gif

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

## 安装

```sh
sudo av install brew:apng2gif
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apng2gif
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install apng2gif
```

  证据: Debian stable package indexes: apng2gif from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#apng2gif
```

  证据: nixpkgs package indexes: pkgs/by-name/ap/apng2gif/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:apng2gif
- **软件包管理器:** Homebrew
- **版本:** 1.8
- **来源摘要:** Convert APNG animations into animated GIF format
- **主页:** <https://apng2gif.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- apng2gif (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

apng2gif is a small SourceForge-hosted converter that turns Animated PNG files into animated GIFs. The official page says it respects APNG frame delays and loop counts while providing transparency-threshold and background-blending options.

### 项目历史

The project page presents apng2gif as a focused APNG-to-GIF converter with both a command-line version and a Windows GUI. It is distributed through SourceForge along with source and prebuilt binaries for major desktop operating systems.

The SourceForge 1.8 file page records an improved APNG decoder based on apngdis 2.9, loop-count adjustment, duplicate-frame optimization, and 64-bit Windows binaries. That is about as much public project history as the official sources expose.

### 采用历史

apng2gif adoption is naturally narrow: it serves people who keep high-quality APNG masters but still need GIF output for older or more constrained web/image pipelines. The official page explicitly frames webmasters as a practical audience.

### 使用方式

The documented command line is apng2gif anim.png [anim.gif] [-t tlevel] [-b bcolor]. The -t option controls transparency threshold, the -b option blends against a background color, and -b overrides -t.

The project page describes converting 24/32-bit APNG to a single global 256-color GIF palette using a Wu quantization grid, which is the practical tradeoff behind the tool: keep APNG masters, generate GIF fallbacks when needed.

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

apng2gif is the kind of tiny media converter package that survives because it does one format edge case well. Its value is not breadth; it is a low-friction CLI for APNG fallback assets and batch conversion.

It also sits in a small APNG tools family where each utility handles one direction or maintenance step in an animated-image workflow.

### 时间线

- 2017-05-19: The SourceForge 1.8 file page records source and binary artifacts and README text.
- 2017-05-22: The SourceForge 1.8 file page records the 32-bit Windows GUI binary.
- 1.8: Release notes record an improved decoder based on apngdis 2.9 and duplicate-frame optimization.

### Related projects

- The official page links gif2apng, apngasm, apngdis, and apngopt as related APNG tools.

### 来源

- <https://apng2gif.sourceforge.net/>
- <https://sourceforge.net/projects/apng2gif/files/1.8/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - apng2gif - 1.8-5+b1: normalized package name match | Debian stable package indexes: apng2gif from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for converting APNG images to animated GIF format | https://apng2gif.sourceforge.net
- Nix - apng2gif: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apng2gif/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - apng2gif - 1.8-5build2: normalized package name match | Ubuntu 24.04 LTS package indexes: apng2gif from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for converting APNG images to animated GIF format | https://apng2gif.sourceforge.net


## Combined YAML source

View the package source record on GitHub. [combined/apng2gif.yml](https://github.com/mxcl/pkgdb/blob/main/combined/apng2gif.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
