# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/apng2gif>
- **版本:** 1.8
- **来源摘要:** Convert APNG animations into animated GIF format
- **主页:** <https://apng2gif.sourceforge.net/>
- **上游文档:** <https://apng2gif.sourceforge.net/>
- **许可证:** libpng-2.0 AND Zlib
- **源码归档:** <https://downloads.sourceforge.net/project/apng2gif/1.8/apng2gif-1.8-src.zip>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- apng2gif (cli)
- apng2gif (别名)

## 依赖

- libpng

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.8
- 本地数据: OK
- 上游仓库: https://apng2gif.sourceforge.net/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** apng2gif
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [libpng](https://www.automicvault.com/zh-hans/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [gif2png](https://www.automicvault.com/zh-hans/pkg/brew/gif2png/) - Shares av.db curated category or tags: cli, gif, image-conversion, media.
- [gifski](https://www.automicvault.com/zh-hans/pkg/brew/gifski/) - Shares av.db curated category or tags: animation, cli, gif, media.
- [agg](https://www.automicvault.com/zh-hans/pkg/brew/agg/) - Shares av.db curated category or tags: cli, gif, media.
- [apngasm](https://www.automicvault.com/zh-hans/pkg/brew/apngasm/) - Shares av.db curated category or tags: apng, cli, media.
- [durdraw](https://www.automicvault.com/zh-hans/pkg/brew/durdraw/) - Shares av.db curated category or tags: animation, cli, media.
- [gifcap](https://www.automicvault.com/zh-hans/pkg/brew/gifcap/) - Shares av.db curated category or tags: cli, gif, media.
- [gifify](https://www.automicvault.com/zh-hans/pkg/brew/gifify/) - Shares av.db curated category or tags: cli, gif, media.
- [gifsicle](https://www.automicvault.com/zh-hans/pkg/brew/gifsicle/) - Shares av.db curated category or tags: cli, gif, media.
- [imagemagick](https://www.automicvault.com/zh-hans/pkg/brew/imagemagick/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, convert, image, image-conversion.
- [jp2a](https://www.automicvault.com/zh-hans/pkg/brew/jp2a/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, convert, image, image-conversion.
- [libicns](https://www.automicvault.com/zh-hans/pkg/brew/libicns/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, format, image, image-conversion.

## Combined YAML source

View the package source record on GitHub. [combined/apng2gif.yml](https://github.com/automic-vault/db/blob/main/combined/apng2gif.yml)


## 来源

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