---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

Search & Discovery

8 min read

Updated 2026-09-29

# How Do I Find Duplicate Photos, Including Edited and Resized Copies?

A resized, recompressed, cropped or filtered photo has different bytes from the original, so a simple duplicate finder misses it. This explains the three ways to compare photos, what each one catches, the tools for a personal library and for an archive of millions, and how to set the threshold so you keep the right copy.

![Ethan Steininger](/people/ethan.webp)

By [Ethan Steininger](/blog/authors/ethan), Founder & CEO, Mixpeek

Duplicate Photos

Image Deduplication

Perceptual Hashing

Image Search

Digital Asset Management

[Run this on your own data. Try it as you read.Search your own archive →](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide_cta&utm_campaign=mvs_onramp)

[One-click templatesStart from a templateEach template deploys a working search app on your own files.Browse templates](/templates)

## How do I find duplicate photos, including edited copies?

  
  
Compare the photos by what they look like as well as by their bytes. A file checksum finds exact copies. A perceptual hash, a short fingerprint of the picture's overall shape and brightness, finds the same photo after resizing, recompression or a format change. An image embedding from a vision model finds copies that were cropped, recoloured, filtered or had text added. Run them in that order, cheapest first, group the matches, and keep the best copy from each group.  
  

## Why doesn't my duplicate finder catch edited copies?

  
  
Most duplicate finders compare file contents or checksums, so they only match files that are identical byte for byte. Saving a photo at a different size or quality, exporting it from an editor, or sending it through a messaging app rewrites every byte while the picture looks the same. To a checksum those are unrelated files.  
  

## What are the ways to compare photos?

  
  

Method

Catches

Misses

Cost

File checksum (for example SHA-256)

Exact byte-for-byte copies, whatever the file name

Any re-save, resize or format change

Very low

Perceptual hash (aHash, dHash, pHash)

Resized, recompressed and format-converted copies; small colour changes

Crops, rotations, mirrored copies, heavy filters or overlays

Low

Image embedding from a vision model

Crops, colour grades, filters, overlaid text, and the same scene shot a second later

Can group photos that are similar and distinct, such as a burst of near-identical shots

Moderate, usually a GPU for large sets

  
  
The embedding method is the most forgiving and the one that needs a threshold chosen with care, because "the same photo edited" and "a different photo of the same thing" can sit close together. Self-supervised models such as [DINOv2](/models/dinov2-base) tend to separate those two cases better than models trained to match images with text.  
  

## What tools can I use?

  
  
*   **For a personal library:** Apple Photos on recent iOS and macOS versions has a Duplicates album
that finds exact and near-identical photos and merges them. On a computer, open-source tools such as dupeGuru (picture mode) and Czkawka (similar images) compare folders with perceptual matching.*   **For a shared drive or a DAM:** many digital asset management systems flag exact duplicates on
upload; fewer catch edited copies, so check before assuming yours does.*   **For an archive of millions:** compute checksums and perceptual hashes for everything, then
embeddings, and use a vector index so each photo is compared only with its nearest neighbours instead of with every other photo. Comparing every pair grows with the square of the collection and stops being practical long before a million images.  
  

## How do I choose the threshold and which copy to keep?

  
  
Take a few hundred photos you know well, label which pairs are true duplicates, and look at the similarity scores. Set the cut-off where true duplicates and distinct photos separate, and send the borderline band to a person rather than deleting it automatically. Then keep one copy per group by a rule you can state: the largest resolution, the earliest date, or the one with the most metadata, since edited copies often lose their camera data and location.  
  
Never delete in the same step that finds duplicates. Move them aside, check a sample, then delete.  
  

## How do I do this with Mixpeek?

  
  
Point Mixpeek at the bucket that holds the photos. Every object is fingerprinted with a SHA-256 content hash on the way in, so exact copies are recognised at ingest and [not processed twice](https://mixpeek.com/docs/processing/deduplication). The [image extractor](/extractors/image) embeds each photo, and a retriever finds each photo's near matches by similarity, while [clustering](https://mixpeek.com/docs/enrichment/clusters) groups them across the whole archive and the [deduplicate stage](https://mixpeek.com/docs/retrieval/stages/deduplicate) removes repeats from search results. The photos stay in your own storage. At the [published rate](/pricing) of $1.485 per thousand images, embedding 100,000 photos costs about $149 in processing.  
  
Related: [why image search returns lookalikes instead of the exact item](/guides/why-image-search-returns-similar-not-exact), [the best image similarity search tools](/curated-lists/best-image-similarity-search-tools), [the best reverse image search APIs](/curated-lists/best-reverse-image-search-apis) and [the best video deduplication tools](/curated-lists/best-video-deduplication-tools).  
  

## Frequently Asked Questions

  
  

### What is the difference between a duplicate and a near-duplicate photo?

  
  
A duplicate is the same file, byte for byte. A near-duplicate is the same picture saved differently: resized, recompressed, cropped, filtered or converted to another format. Checksums find duplicates; perceptual hashes and image embeddings find near-duplicates.  
  

### What is a perceptual hash?

  
  
A short fingerprint computed from a shrunken, greyscale version of the picture, so it stays almost the same when the photo is resized or recompressed. Two photos are compared by counting how many bits of their fingerprints differ; a small difference means the same picture.  
  

### Can I find duplicates that were cropped or had a filter applied?

  
  
Yes, with image embeddings from a vision model, which compare the content of the pictures. Perceptual hashes usually miss crops and heavy filters. Check a sample of matches, because embeddings can also group photos that are similar and not duplicates.  
  

### How do I find duplicates in a very large photo archive?

  
  
Avoid comparing every photo with every other one. Group exact copies by checksum first, then index perceptual hashes or embeddings in a nearest-neighbour index so each photo is compared only with its closest matches, and review the borderline pairs by hand before removing anything.

## Run this on your own data

Point Mixpeek at the storage you already have and search your video, images, audio, and documents the way this guide describes. Build starts at $25/mo for up to 1M vectors.

[Search your own archive](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide_cta&utm_campaign=mvs_onramp)[Read Docs](/docs)

[Explore MVS](/mvs)[See pricing](/pricing)

## Related guides

[

Search & Discovery

### How Do I Find Every Photo of One Person in a Large Photo Library?

To find every photo of one person, detect the faces in each photo, turn each face into a face embedding, and search with a few reference photos of that person. This explains how the phone apps do it, how to do it across an archive of millions, why matches get missed, and the consent rules that apply to faces.

Read guide →](/guides/how-to-find-every-photo-of-one-person-in-a-large-photo-library)[

Search & Discovery

### Why Does My Image Search Miss Small Objects in a Photo?

Image search misses small objects because most systems store one vector per photo, computed from a copy shrunk to about 224 pixels. A 100-pixel object in a 4000x3000 photo becomes 5 to 8 pixels, smaller than one of the model's image patches, and CLIP's center crop drops a quarter of a wide photo before the model sees it. The fix is to embed crops of each photo as well as the whole, and rank each photo by its best-matching crop.

Read guide →](/guides/why-does-image-search-miss-small-objects)[

Search & Discovery

### How Do I Stop Duplicate Videos Showing Up in My Search Results?

Your video search or library returns the same video several times: re-uploads, re-encoded copies, trimmed versions, or many clips from one long video. This explains where each kind of duplicate comes from and how to stop it, at ingest and in the results, for a library or search app you run.

Read guide →](/guides/how-to-stop-duplicate-videos-showing-up-in-search-results)