# 使用 Homebrew, apt, Nix, zypper 安装 ansilove

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

## 安装

```sh
sudo av install brew:ansilove
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ansilove
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install ansilove
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ansilove
```

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

- zypper (92%):

```sh
sudo zypper install ansilove
```

  证据: openSUSE Tumbleweed package metadata: ansilove from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ansilove
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ansilove>
- **版本:** 4.2.2
- **来源摘要:** ANSI/ASCII art to PNG converter
- **主页:** <https://www.ansilove.org>
- **仓库:** <https://github.com/ansilove/ansilove>
- **上游文档:** <https://github.com/ansilove/ansilove#readme>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/ansilove/ansilove/releases/download/4.2.2/ansilove-4.2.2.tar.gz>
- **最后更新:** 2026-06-10T21:34:49Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- ansilove (cli)
- ansilove (别名)

## 依赖

- libansilove

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 4.2.2
- 管理器更新时间: 2026-06-10
- 本地数据: OK
- 上游仓库: https://github.com/ansilove/ansilove
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Ansilove, also called AnsiLove/C upstream, is an ANSI and ASCII art to PNG converter. It renders classic artscene formats such as ANS, PCB, BIN, ADF, IDF, TND, and XBin using DOS and Amiga fonts, SAUCE metadata, iCE colors, and compact 4-bit PNG output.

### 项目历史

The official README describes AnsiLove/C as a complete rewrite of AnsiLove/PHP in C. The rewrite was motivated by independence from a PHP interpreter, performance, portability, and the desire for a reusable C foundation that could support libraries and embedding.

The 4.0.0 release in 2019 switched the command-line program to libansilove, added DOS aspect-ratio handling, improved SAUCE parsing, and added support for PabloDraw 24-bit ANSI sequences. Later releases continued the package-maintainer-friendly path: CMake improvements, tests, optional seccomp support, and links to additional distro packages.

### 采用历史

The README lists packages for OpenBSD, NetBSD, FreeBSD, Debian, Ubuntu, openSUSE, Solus, Gentoo, Homebrew, Guix, and Nix, making Ansilove a cross-distro preservation tool for ANSI art collections. It also names downstream or user projects such as 16colo.rs, Textfiles.com, Durdraw, and emacs-ansilove.

Its adoption is tied less to everyday shell scripting and more to digital preservation and artscene tooling. Archives use it to generate preview images from text-mode art, while editors and viewers can embed its renderer through libansilove or shell out to the CLI.

### 使用方式

The ansilove command takes an input file and writes a PNG, with flags for output path, font, columns, file type, iCE colors, DOS aspect ratio, Retina scale, and SAUCE inspection. In most package-manager installs it is a single-purpose media converter rather than a general terminal filter.

No official config file or credential store is documented; behavior is controlled by CLI flags and build options.

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

Ansilove is package-nerd catnip because it packages a niche cultural format with serious portability discipline. The upstream cares about C99, GCC and Clang, BSD platforms, CMake, man pages, test cases, and distro links, all for the humble job of turning CP437-era art into inspectable PNGs.

It also demonstrates a clean split between a CLI package and a reusable rendering library, libansilove, which matters for downstream tools that want faithful ANSI-art rendering without reimplementing SAUCE, font, and palette behavior.

### 时间线

- 2019: Ansilove/C 4.0.0 switches to libansilove and expands rendering behavior.
- 2020: 4.1.x releases add type selection, seccomp work, SAUCE rendering hints, and portability fixes.
- 2022: 4.1.6 documents experimental seccomp support and modernizes CMake usage.
- 2023: 4.2.0 adds Spleen 8x16 font support.
- 2025: 4.2.1 adds project and package links including Durdraw and Guix.
- 2026: 4.2.2 fixes Topaz font selection from SAUCE metadata.

### Related projects

- libansilove is the rendering library used by current Ansilove/C.
- AnsiLove/PHP is the earlier implementation from which the C rewrite departed.
- Durdraw and emacs-ansilove are documented downstream users.

### 来源

- <https://github.com/ansilove/ansilove#readme>
- <https://raw.githubusercontent.com/ansilove/ansilove/master/ChangeLog>
- source_facts.package-manager


## 安全说明

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:** ansilove
- **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 - ansilove - 4.2.0-2: normalized package name match | Debian stable package indexes: ansilove from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ANSI and ASCII art to PNG converter | https://www.ansilove.org
- Nix - ansilove: normalized package name match | nixpkgs package indexes: pkgs/by-name/an/ansilove/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ansilove - 4.2.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ansilove from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ANSI and ASCII art to PNG converter | https://www.ansilove.org
- zypper - ansilove - 4.2.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: ansilove from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | ANSI and ASCII art to PNG converter | https://www.ansilove.org


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow 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.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [durdraw](https://www.automicvault.com/zh-hans/pkg/brew/durdraw/) - Popular package that depends on this formula.
- [aalib](https://www.automicvault.com/zh-hans/pkg/brew/aalib/) - Shares av.db curated category or tags: ascii-art, cli, graphics, media.
- [gd](https://www.automicvault.com/zh-hans/pkg/brew/gd/) - Shares av.db curated category or tags: cli, graphics, media, png.
- [swiftdraw](https://www.automicvault.com/zh-hans/pkg/brew/swiftdraw/) - Shares av.db curated category or tags: cli, graphics, media, png.
- [alembic](https://www.automicvault.com/zh-hans/pkg/brew/alembic/) - Shares av.db curated category or tags: cli, graphics, media.
- [batik](https://www.automicvault.com/zh-hans/pkg/brew/batik/) - Shares av.db curated category or tags: cli, graphics, media.
- [coin3d](https://www.automicvault.com/zh-hans/pkg/brew/coin3d/) - Shares av.db curated category or tags: cli, graphics, media.
- [dicebear](https://www.automicvault.com/zh-hans/pkg/brew/dicebear/) - Shares av.db curated category or tags: cli, graphics, media.
- [jp2a](https://www.automicvault.com/zh-hans/pkg/brew/jp2a/) - Local package facts share a topical domain. Shared terms: art, ascii, ascii-art, cli, media.

## Combined YAML source

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