Image Hash vs Reverse Image Search: What Changes and What Does Not
Learn how file hashes and perceptual image matching work, why their fingerprints are different, and which privacy questions each technique can answer.
Check a File’s Signature and Hashes
Calculate full-file SHA-256 and SHA-1 hashes and check selected file markers. Cryptographic hashes do not perform reverse-image search or perceptual matching.
Key Takeaways
- A cryptographic hash changes when the file bytes change. Re-saving an image may or may not change the byte stream, depending on the application and export settings.
- Perceptual hashes (pHash, dHash) measure visual structure and can match images even through resizing and color shifts.
- Some deduplication, search, and media-management systems use cryptographic hashes, perceptual hashes, image embeddings, or other visual features. Their implementations differ, and changing exact bytes does not prevent a system from recognizing similar pixels.
- An earlier version of PurgeAI offered pixel adjustment to change file bytes, but that option was removed because it forced re-encoding and did not reliably prevent perceptual matching or reverse-image search.
Table of Contents4 sections
Cryptographic Hashes vs Perceptual Hashes: How They Work
A cryptographic digest, such as MD5 or SHA-256, is produced by passing a file’s raw bytes through a hash function. Matching SHA-256 digests provide strong evidence that two files are byte-for-byte identical, while changed metadata or re-encoding can produce a different digest even when the visible image looks the same.
Perceptual hashes are designed to produce similar fingerprints for visually similar images, but common algorithms do not all use the same method. An average hash (aHash) typically compares a small grayscale image’s pixels with their average brightness. A difference hash (dHash) encodes neighboring-pixel brightness changes. A common pHash implementation uses low-frequency coefficients from a discrete cosine transform (DCT). Similarity is often estimated with Hamming distance between the resulting bit strings. Implementations and preprocessing choices vary, so do not describe DCT as a step used by every perceptual hash.
How Web Scrapers and Bots Fingerprint Images
Reverse-image search services can compare visual features or use proprietary image representations to find exact and similar images. Their internal indexing and matching pipelines are not fully public, so it is not accurate to claim that every crawler computes the same perceptual hash or follows one universal process. Removing EXIF metadata may reduce exposed camera or location details, but it does not prevent a visually similar image from being found.
Removing EXIF metadata may reduce exposed camera or location details, but it is not an anonymity guarantee. Reverse-image search can still return visually similar images after metadata is removed or the file is re-encoded.
Why PurgeAI Removed Digital Jiggle
An earlier version of PurgeAI offered an optional Digital Jiggle setting that adjusted the red-channel value of up to three pixels. That path required Canvas raster re-encoding, which could affect image quality, animation, transparency, color profiles, or format-specific data.
The option was removed because ordinary metadata removal or an explicit export conversion can already change a file’s bytes and cryptographic hash when the bytes differ. A changed SHA-256 hash does not prevent perceptual hashes or reverse-image services from recognizing a visually similar image.
Sources and further reading
For technical details, consult the original standards and documentation below. Platform behavior can change, so verify service-specific policies before relying on a result.
- SubtleCrypto.digest() cryptographic digest API — MDN Web Docs
- ImageHash: perceptual image hashing library and examples — ImageHash project
Frequently Asked Questions
Does changing an image hash affect copyright?
No. Changing file bytes or its cryptographic hash does not change who owns the image, and copyright still applies to the original work.
How can I verify the new hash?
PurgeAI displays a shortened fingerprint for the original and output file. It uses SHA-256 when the browser supports Web Crypto, with a shorter fallback fingerprint if it does not; this display is not a full forensic hash report.
Written by PurgeAI Editorial Team
Editorial & Technical Team
The PurgeAI editorial team publishes in-depth blog articles about image metadata, file formats and file privacy. Sources are linked where available.