16

Is there a free and open source duplicate image finder for Linux based systems?

Finding exact duplicates (based on content, not file name) is sufficient for me, but the ability to find similar images would certainly be great, too.

  • 1
    DupeGuru has a specialized version for images. I post this as a comment because I never tried it. – David Costa Jan 12 '12 at 10:57
18

Digikam

Add all the photos to your collection. In the menu, select “Tools / Find duplicates”. This will look for duplicates accross your whole collection.

Findimagedupes

A command line tool. Pass all the images you want to compare on the command line.

Geeqie (formerly gqview)

In the menu, select “File / Find duplicate”. Drag and drop image files do the duplicates window. You can drop directories to add their contents recursively.

Fdupes

A command line tool to find byte-for-byte duplicates in a directory tree.

(Reposted from https://askubuntu.com/questions/4072/how-can-i-find-duplicate-photos)

  • 7
    findimagedups will also descend hierarchies, does not require byte-level duplication and (more importantly) can keep records to speed up future runs (because the initial pass over a large stash of images can take a long time). – dmckee --- ex-moderator kitten Jan 12 '12 at 1:16
-4

You can do it with linux bash commands as well , just comparing file sizes

First: create trash folder to move deleted files there

mkdir ../trash

Then: run this command

mv `stat -c "%s %n" * | column -t | sort | awk '{if( $1 != size ){ print "original",$1,$2; } else { print "delete",$1,$2;} size = $1 }' | grep delete | awk '{ print $3;}'` ../trash/

it works for a single folder

in case you have various folders, you have to do some additional work on the command above

  • 4
    (1) You’re putting the cart before the horse, or something like that. The question says nothing about moving or deleting files, just finding.   (2) Are you seriously suggesting that comparing file sizes is all you need to do to identify identical files?   (3) If you really believe that you have a good way to identify identical files, then edit your answer (a) to do just that (without trashing any files) and (b) explain it, step by step. – G-Man Says 'Reinstate Monica' Jul 30 '18 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.