CleanMate

All guides · macOS and Ubuntu · Updated

Similar photos and burst shots on a Mac and Ubuntu: how to find them and keep the best one

Photos that look alike are not duplicate files: bursts, edits and re-saved copies differ byte by byte. How to tell the two apart, how CleanMate groups similar photos on a Mac and on Ubuntu, and which copy it suggests keeping.

Download for macOS · Install on Ubuntu — free and open source

CleanMate Smart Scan in an Ubuntu terminal listing what it found by folder and size

A burst of twelve nearly identical shots, the same landscape saved at three sizes, an edited copy next to its original: photos like these quietly eat the biggest share of a Pictures folder. They are not duplicate files, and the tools that hunt duplicates will never catch them. Looking for identical files instead? Read find and delete duplicate files on a Mac and Ubuntu. And if the Photos library itself is what grew too big, see the Photos Library taking up space.

A duplicate is byte-identical; a similar photo only looks alike

Two files are duplicates when every byte matches — the same photo downloaded twice, a folder copied. A duplicate finder groups them by comparing content: same size first, then a hash or the bytes themselves.

Similar photos are a different beast. A burst shot differs from its neighbours by a few thousand pixels of camera shake; an edited copy has new pixels; a re-saved or resized copy has different bytes and often a different size. Every hash is different, so no duplicate finder will ever group them, and neither macOS nor Ubuntu ships a command that groups photos which merely look alike. Finding them means comparing images the way eyes do — by what is in the picture, not by bytes.

How CleanMate does it

On a Mac, Similar Photos is a mode of Large & Old Files (⌘4), next to the duplicate filter. It groups photos that look alike — bursts, edits, resized or recompressed copies — in your home folder, a folder or a drive you pick: JPEG, HEIC, PNG, TIFF and WebP files of at least 20 KB. The comparison runs on this Mac with Apple’s Vision image feature prints; nothing is uploaded. Each group shows thumbnails, size, dimensions and date, with the photo that has the most pixels (then the largest file, then the newest) marked Suggested to keep. Nothing is ticked for you; Select All but Suggested ticks the rest. Like the scan, it never reads inside a Photos library (.photoslibrary), an app or iCloud Drive. cleanmate similar lists the same groups from the command line. See all macOS features. The same flow for identical files is on the duplicates and similar photos page.

On Ubuntu, similar photos are a mode of the desktop app only: the Duplicates page groups photos that look alike — resized or re-saved copies, edits, shots taken one after another — in Pictures or a folder you pick, read on your computer only. It suggests keeping the photo with the most pixels, then the biggest file, and ticks nothing until you choose. JPEG and PNG always work; WebP, HEIC and AVIF work when your system can open them. Hidden folders, folders in Never clean and Shotwell or digiKam libraries are skipped. The terminal app and cm --json dupes find identical files only — see the Ubuntu app.

cleanmate similar        # Mac: the same photo groups, in Terminal
cm --json dupes          # Ubuntu: identical files, not similar photos

Which copy is kept, and where the rest go

Related: finding large files on a Mac and Ubuntu, duplicates and how to delete them safely and the Photos Library on a Mac. CleanMate is free and open source: download it.

FAQ

What counts as similar?

Photos whose image content is close: burst shots taken one after another, edited copies, resized or re-saved versions. Two different photos of the same scene from separate shoots are usually far enough apart to stay in separate groups.

Which copy does CleanMate suggest keeping?

The one with the most pixels, then the largest file, then the newest — for a burst, usually the sharpest original. You keep the decision: nothing is ticked until you choose.

Does it look inside my Photos library?

No. On a Mac the Photos library is never read; on Ubuntu, Shotwell and digiKam libraries are skipped. Only loose image files in the folder you scan are grouped.

Where do removed photos go?

To the Trash. They can be put back with Undo or, on a Mac, with cleanmate restore, as long as the Trash has not been emptied.

Skip the commands

CleanMate runs on both systems: pick yours.

Open source — star it on GitHub: CleanMate for macOS · CleanMate for Ubuntu

How CleanMate decides what is safe to remove →