# 使用 Homebrew, apk, winget, zypper 安装 dssim

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

## 安装

```sh
sudo av install brew:dssim
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dssim
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add dssim
```

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

- zypper (92%):

```sh
sudo zypper install dssim
```

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

### Windows

- winget (92%):

```sh
winget install --id Kornelski.DSSIM -e
```

  证据: Windows Package Manager source index: Kornelski.DSSIM from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:dssim
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dssim>
- **版本:** 3.4.0
- **来源摘要:** RGBA Structural Similarity Rust implementation
- **主页:** <https://kornel.ski/dssim>
- **仓库:** <https://github.com/kornelski/dssim>
- **上游文档:** <https://github.com/kornelski/dssim#readme>
- **许可证:** AGPL-3.0-or-later
- **源码归档:** <https://github.com/kornelski/dssim/archive/refs/tags/3.4.0.tar.gz>
- **最后更新:** 2026-06-15T10:20:15-04:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- dssim (cli)
- dssim (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.4.0
- 管理器更新时间: 2026-06-15
- 本地数据: OK
- 上游仓库: https://github.com/kornelski/dssim
- 检测到的最新版本: 3.4.0 (当前)
## 项目历史与用法

dssim is Kornel Lesinski's image dissimilarity tool and library based on a variant of SSIM, returning a perceptual difference score for PNG and JPEG images.

### 项目历史

The README frames dssim as an improved SSIM-derived metric for practical image-compression comparison: multi-scale comparison, linear-light RGB scaling, Lab color space, alpha support, color profiles, multicore execution, and C/Rust/WASM library use.

The release history shows an early 1.x Rust API era in 2015 and 2016, followed by a major Rust rewrite in 2.8.0 on 2017-11-10. That rewrite emphasized safer code, full-resolution chroma comparison, linear-light premultiplied-alpha scaling, and acknowledged PNG-only/color-profile limitations at the time. Later 3.x releases improved packaging, WASM compatibility, and performance.

### 采用历史

dssim is used by image codec and optimization developers who need a perceptual comparison metric rather than byte equality or plain RGB error. The README explicitly discusses comparing codecs either at equal file size or equal DSSIM score.

The tool is packaged by Homebrew, Alpine, openSUSE/zypper, and Windows winget; its README also mentions Homebrew and Ubuntu Snap availability. Homebrew analytics showed 187 installs over the preceding 365 days during this batch.

### 使用方式

Typical usage is `dssim original.png modified.png`, optionally comparing many modified images against one original or writing a visual difference image with `-o`. The README warns users to quote the dssim version because the score scale has changed between versions.

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

dssim is package-nerd significant because it packages an image-quality metric as both a CLI and reusable native/WASM library. It sits in the practical space between academic SSIM papers and real package-manager workflows for codec benchmarking, regression tests, and image optimization.

### 时间线

- 2015-12-05: 1.2.0 introduced Rust API compatibility and improved sRGB gamma precision.
- 2016-05-09: 1.3.x releases were published with precision, stdin, gamma, and PNG-handling fixes.
- 2017-11-10: 2.8.0 was published as a major Rust rewrite.
- 2022-09-18: 3.2.3 was published with WASM compatibility and performance improvements.
- 2025-03-05: 3.4.0 was published with another performance improvement and is the Homebrew stable version recorded for this batch.

### Related projects

- SSIM is the underlying perceptual-similarity algorithm family linked from the README.
- TID2013 is the image-quality dataset used in the README's accuracy table.
- docs.rs hosts the Rust library documentation linked from the README.
- Image codec and compression benchmarking tools are natural neighbors because the README focuses on fair image-compression comparison.

### 来源

- <https://github.com/kornelski/dssim#readme>
- <https://github.com/kornelski/dssim/releases/tag/1.2.0>
- <https://github.com/kornelski/dssim/releases/tag/1.3.2>
- <https://github.com/kornelski/dssim/releases/tag/2.8.0>
- <https://github.com/kornelski/dssim/releases/tag/3.2.3>
- <https://github.com/kornelski/dssim/releases/tag/3.4.0>
- <https://formulae.brew.sh/formula/dssim>


## 安全说明

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:** dssim
- **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

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

- apk - dssim - 3.4.0-r0: normalized package name match | Alpine Linux edge package indexes: dssim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Tool for image similarity comparison, simulating human perception | https://kornel.ski/dssim
- zypper - dssim - 3.2.3-2.8: normalized package name match | openSUSE Tumbleweed package metadata: dssim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | This tool computes (dis)similarity between two (or more) PNG images | https://kornel.ski/dssim
- winget - Kornelski.DSSIM: normalized package name match | Windows Package Manager source index: Kornelski.DSSIM from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter 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.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [lutgen](https://www.automicvault.com/zh-hans/pkg/brew/lutgen/) - Shares av.db curated category or tags: cli, image-processing, media, rust.
- [perceptualdiff](https://www.automicvault.com/zh-hans/pkg/brew/perceptualdiff/) - Shares av.db curated category or tags: cli, image-comparison, image-processing, media.
- [babl](https://www.automicvault.com/zh-hans/pkg/brew/babl/) - Shares av.db curated category or tags: cli, image-processing, media.
- [caire](https://www.automicvault.com/zh-hans/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [camellia](https://www.automicvault.com/zh-hans/pkg/brew/camellia/) - Shares av.db curated category or tags: cli, image-processing, media.
- [chafa](https://www.automicvault.com/zh-hans/pkg/brew/chafa/) - Shares av.db curated category or tags: cli, image-processing, media.
- [epsilon](https://www.automicvault.com/zh-hans/pkg/brew/epsilon/) - Shares av.db curated category or tags: cli, image-processing, media.
- [exact-image](https://www.automicvault.com/zh-hans/pkg/brew/exact-image/) - Shares av.db curated category or tags: cli, image-processing, media.

## Combined YAML source

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