Using findimagedupes:
# Look for and compare images that are 90% similar
# in all subdirectories of the current directory.
findimagedupes -R -- .
The -t
option controls how similar the images should be:
# Same as before but for images that are 99% similar.
findimagedupes -t 99 -R -- .
Suppose a directory had these files:
white.png foo.png. bar.png. baz.jpg green.png
...where white.png was known to be white, green.png was known to be green, and the other were uncertain. Since findimagedupes
outputs any similar files on the same line, (space separated), this would show only the white ones:
findimagedupes -t 100 -R -- . | grep -w white.png
Output, (assuming bar.png is white):
white.png bar.png
See also: Command line tool to check whether two images are exactly the same graphically, and more generally: An intelligent duplicate file finder for Linux.