# 使用 Homebrew, apk 安装 imgdiff

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

## 安装

```sh
sudo av install brew:imgdiff
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install imgdiff
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add imgdiff
```

  证据: Alpine Linux edge package indexes: imgdiff from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

## 软件包事实

- **软件包键:** brew:imgdiff
- **软件包管理器:** Homebrew
- **版本:** 1.0.2
- **来源摘要:** Pixel-by-pixel image difference tool
- **主页:** <https://github.com/n7olkachev/imgdiff>
- **仓库:** <https://github.com/n7olkachev/imgdiff>
- **最后更新:** 2026-07-26T04:07:47+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- imgdiff (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

imgdiff is a small Go command-line utility for pixel-by-pixel image comparison. Its public README frames the project as a faster response to odiff, another visual-diff tool used in image-regression and screenshot-testing workflows.

### 项目历史

The GitHub repository was created on 2020-12-12, and the v1.0.0 release was published the same day as an initial release with pre-built binaries. Follow-up releases in February and March 2021 fixed package-path and output-writing issues, after which the package remained a compact single-purpose visual comparison tool.

### 采用历史

Adoption appears niche but visible: the repository has roughly 1.7k GitHub stars in repository metadata, and Homebrew publishes a formula for macOS users. Homebrew analytics for the formula show low install counts, which fits a developer-tooling utility used mainly inside visual test and image-comparison workflows.

### 使用方式

The README documents a CLI that accepts base, compare, and output image paths, with options for color-difference threshold, diff-image rendering, and layout-failure behavior. The intended use is direct image comparison rather than general image editing.

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

imgdiff is package-nerd interesting because it is a tiny Go binary competing on startup simplicity and benchmark performance against heavier image-processing stacks. It represents the class of single-binary tools that package managers can expose for CI and screenshot-regression jobs without pulling in a larger application.

### 时间线

- 2020-12-12: GitHub repository created and v1.0.0 initial release published.
- 2021-02-17: v1.0.1 fixed the package path.
- 2021-03-25: v1.0.2 fixed output writing.
- 2026: Homebrew formula metadata lists imgdiff as a pixel-by-pixel image difference tool.

### Related projects

- The README explicitly compares imgdiff with odiff. It also fits the broader visual-regression ecosystem around screenshot testing and pixel-diff utilities.

### 来源

- <https://formulae.brew.sh/formula/imgdiff>
- <https://github.com/n7olkachev/imgdiff>
- <https://github.com/n7olkachev/imgdiff/releases>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- apk - imgdiff - 1.0.2-r37: normalized package name match | Alpine Linux edge package indexes: imgdiff from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast pixel-by-pixel image difference tool | https://github.com/n7olkachev/imgdiff
- apk - imgdiff-doc - 1.0.2-r37: normalized package name match | Alpine Linux edge package indexes: imgdiff-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast pixel-by-pixel image difference tool (documentation) | https://github.com/n7olkachev/imgdiff


## Combined YAML source

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