spaceman-diff
« Back to VersTracker
Description:
Diff images from the command-line
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: images diff cli developer-tools testing
Install: brew install spaceman-diff
About:
SpacemanDiff is a command-line utility that visually compares two images by highlighting their pixel-by-pixel differences. It renders the diff directly in the terminal using ANSI escape codes, making it ideal for developers who need to quickly verify image assets without leaving their console. This tool is particularly useful for automated visual regression testing and debugging image processing pipelines.
Key Features:
  • Renders image diffs directly in the terminal using 24-bit color
  • Supports common image formats like PNG and JPEG
  • Simple command-line interface with minimal dependencies
  • Outputs pixel differences as colored blocks for easy visual inspection
Use Cases:
  • Debugging image generation or processing scripts in headless environments
  • Performing quick visual regression tests in CI/CD pipelines
  • Comparing screenshots or UI assets during frontend development
Alternatives:
  • ImageMagick – More powerful and versatile for complex image manipulation, but heavier and not specifically designed for terminal-based diffing.
  • pixelmatch – A Node.js library for pixel-level comparison, often used in browser-based testing frameworks rather than as a standalone CLI tool.
Version History
Detected Version Rev Change Commit