#image #perceptual #quality

app butteraugli-cli

Command-line tool for butteraugli perceptual image quality comparison

4 releases

0.4.0 Jan 8, 2026
0.3.2 Jan 8, 2026
0.3.1 Jan 2, 2026
0.3.0 Dec 29, 2025

#1474 in Images

BSD-3-Clause

325KB
8K SLoC

butteraugli-cli

Command-line tool for computing butteraugli perceptual image quality scores.

Installation

cargo install butteraugli-cli

Or download pre-built binaries from GitHub Releases.

Usage

# Compare two images
butteraugli original.png compressed.jpg

# Show quality rating with colors
butteraugli -q original.png compressed.jpg

# CI mode - exit code 1 if score exceeds threshold
butteraugli --max-score 1.5 original.png compressed.jpg

# Compare all images in two directories
butteraugli --batch dir1/ dir2/

# Output JSON for scripting
butteraugli --json original.png compressed.jpg

# Save difference heatmap
butteraugli --diffmap diff.png original.png compressed.jpg

Score Interpretation

Score Quality Description
0.0 - 0.5 Excellent Imperceptible difference
0.5 - 1.0 Good Barely noticeable
1.0 - 2.0 Acceptable Noticeable but acceptable
2.0 - 3.0 Poor Clearly visible difference
3.0+ Bad Large, obvious difference

Exit Codes

  • 0 - Success (score within threshold if --max-score specified)
  • 1 - Score exceeded threshold
  • 2 - Error (file not found, invalid image, etc.)

Library

For programmatic use, see the butteraugli library crate.

License

BSD-3-Clause

Dependencies

~11–23MB
~304K SLoC