An image comparing console application we built a few years ago.
It also has a thumbnailer.
The comparer now supports multiple strategies:
legacy(original dominant-channel logic)mad(mean absolute pixel difference on normalized images)dhash(perceptual difference hash)auto(default; chooses a strategy based on image characteristics)
dotnet run --project ImageComparator/ImageComparator.csproj -- <goodDir> <badDir> [fileType] [--strategy=auto|legacy|mad|dhash] [--benchmark] [--benchmark-iterations=25]When --benchmark is enabled, the app prints per-strategy timing and similarity output for the first compared image pair.
Run:
dotnet run --project ImageComparator.Tests/ImageComparator.Tests.csproj