# 使用 Homebrew, MacPorts, Nix 安装 swftools

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

## 安装

```sh
sudo av install brew:swftools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swftools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install swftools
```

  证据: MacPorts ports tree: graphics/swftools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#swftools
```

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

## 软件包事实

- **软件包键:** brew:swftools
- **软件包管理器:** Homebrew
- **版本:** 0.9.2
- **来源摘要:** SWF manipulation and generation tools
- **主页:** <https://github.com/swftools/swftools>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- as3compile (别名)
- font2swf (别名)
- png2swf (别名)
- swfbbox (别名)
- swfc (别名)
- swfcombine (别名)
- swfdump (别名)
- swfextract (别名)
- swfrender (别名)
- swfstrings (别名)
- wav2swf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

SWFTools is a collection of command-line utilities for reading, combining, extracting, and generating Adobe Flash SWF files. Its package-manager relevance comes from the Unix-toolbox shape of the project: many small executables such as swfdump, swfextract, png2swf, wav2swf, font2swf, swfc, and as3compile rather than one monolithic application.

### 项目历史

The official ChangeLog records the project from an initial 0.0.1 release through the 0.9 series. Across those releases the suite expanded from PDF and SWF manipulation into text extraction, image and audio conversion, Flash compression support, SWF bounding-box work, a scripting compiler, Python bindings, and ActionScript 3 tooling.

### 采用历史

The official README reports portability across Solaris, Linux, FreeBSD, OpenBSD, HP-UX, macOS, and older Windows releases. In package-manager culture, SWFTools survived the decline of browser Flash because archival, conversion, and inspection tasks still needed reproducible command-line tools.

### 使用方式

Typical usage is file-oriented: inspect SWF metadata with swfdump, extract embedded assets with swfextract, combine or wrap movies with swfcombine, or generate SWF content from images, fonts, WAV audio, PDFs, or simple source scripts. This makes the suite closer to ImageMagick-style media plumbing than to an authoring environment.

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

SWFTools matters to package nerds as a preservation-era media package: it packages a historically important but now legacy format, bundles many utilities with optional library dependencies, and keeps old Flash workflows scriptable on modern Unix-like systems.

### 时间线

- 0.0.1: Initial release recorded in the official ChangeLog.
- 0.3.0: png2swf and wav2swf added, alongside Flash 6 compressed SWF support.
- 0.5.0: swfc and swfbbox added.
- 0.9.0: as3compile added and SWF/Flash 8 and 9 support expanded.
- 0.9.2: Poppler integration work started for pdf2swf.

### Related projects

- Adobe Flash SWF is the file format SWFTools manipulates.
- xpdf and later Poppler appear in the official ChangeLog as PDF parser lineage for pdf2swf.
- LAME, zlib, freetype, and other media libraries appear in the build and feature history.

### 来源

- <https://github.com/swftools/swftools>
- <https://github.com/swftools/swftools/blob/master/ChangeLog>
- <https://www.swftools.org/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - swftools: normalized package name match | nixpkgs package indexes: pkgs/by-name/sw/swftools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - swftools: normalized package name match | MacPorts ports tree: graphics/swftools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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