My Shared Photos

Finding duplicate photos without losing the good copy

Updated

Three similar photo files compared by size, with the largest one marked as the copy to keep
Three copies of the same picture: keep the one with the most pixels and the original metadata.

Every family archive collects duplicates. The same holiday picture ends up on a phone, in a messaging app, in a laptop import folder and on an old memory card. Before you start deleting, it helps to know what kind of duplicate you are looking at, because the right action is different for each.

Three kinds of duplicates

Exact duplicates are byte-for-byte identical files, often with names such as IMG_2041 (1).jpg. Near duplicates are the same picture saved at a lower resolution, rotated, or recompressed by a chat application. Burst shots are different pictures that merely look alike: a child blowing out candles photographed six times in two seconds.

Exact duplicates are safe to remove in bulk. Near duplicates need a quick look, and burst shots are a matter of taste, so leave them alone until the rest of the archive is tidy.

Work on a copy of the inbox

Do not run a cleanup tool on your only copy of anything. Copy the collection into an inbox folder, run the tool on that, and keep the sources untouched until the last step. If a mistake happens, you simply copy the folder again.

A routine that works

  1. Compare content hashes first; this finds exact duplicates quickly and without false positives.
  2. Run a perceptual comparison second. It reports pictures that look the same even when the files differ. Set the similarity threshold high at first, around 95 percent, and lower it only if you are not seeing enough matches.
  3. For each group, keep the file with the highest resolution and the original metadata. A copy that came through a chat application has usually lost its capture date and location.
  4. Move the losers to a folder called to-delete rather than deleting them. Wait a week, open the library a few times, and only then empty it.
  5. Re-run the exact-duplicate check at the end, because merging folders often creates new matches.

Things that trip people up

Edited versions are not duplicates. A cropped or colour-corrected copy of a picture is a deliberate second file, and many tools will offer to remove it. Check the modification dates before accepting a suggestion.

Short live clips recorded next to a still image share a name with the picture on some phones. A file-name comparison would treat them as a pair, which is one more reason to compare by content, not by name.

Finally, keep a plain text log of what you removed and from which folder. It takes a minute and saves an evening of doubt when an aunt asks where the picture from the lake went.

How often to repeat it

Once the archive is clean, a short pass after every large import is enough. Import into the inbox, check for duplicates against the main library, then move what is new. Over a year this takes a few minutes each time and keeps the collection from drifting back into chaos.

Related