Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 2.05 KB

tool-visual-diff-tool-compare-images.md

File metadata and controls

36 lines (22 loc) · 2.05 KB

Visual diff tool for comparing images

Computers are much faster than humans at detecting and quantifying subtle differences between images.

User Story

  • I want to quickly and accurately compare 2 images.
  • If the images are different, I want to the difference to be quantified and visualized.

Solution

The ODiff CLI tool from @dmtrKovalenko is awesome, fast, and easy to use!

ODiff will compare the 2 images pixel-by-pixel and highlight pixels that are have a different color in red. There are configuration options too. See the repo for details.

❗️ Note that images must be the same size.

Installation & Use

This should work cross-platform but I only checked on MacOS Monterey, Intel Chip.

# Installation
npm install odiff-bin

# Use
odiff <IMG1 path> <IMG2 path> <DIFF output path>
IMG1 IMG2 DIFF
image image image

References

The GitHub repo for the tool.