# 使用 Homebrew, apk, zypper, winget 安装 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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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
- **版本:** 3.4.0
- **来源摘要:** RGBA Structural Similarity Rust implementation
- **主页:** <https://kornel.ski/dssim>
- **仓库:** <https://github.com/kornelski/dssim>
- **最后更新:** 2026-06-15T10:20:15-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dssim (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 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

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

- 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.10: normalized package name match | openSUSE Tumbleweed package metadata: dssim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

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