# Install dssim with Homebrew, apk, zypper, winget

RGBA Structural Similarity Rust implementation. Version 3.4.0 via Homebrew; verified 2026-06-15. Also installable with apk: sudo apk add dssim.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dssim
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add dssim
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:dssim
- **Package manager:** Homebrew
- **Version:** 3.4.0
- **Source summary:** RGBA Structural Similarity Rust implementation
- **Homepage:** <https://kornel.ski/dssim>
- **Repository:** <https://github.com/kornelski/dssim>
- **Last updated:** 2026-06-15T10:20:15-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- dssim (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.4.0
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
