Rebind Image Fingerprint

Published: 2026-11-28 (UTC). Implementation label: phash_256. The source requirements pin ImageHash 4.3.1 and Pillow 10.1.0; the computation below describes that reference implementation. The build log for the deployed image, checked on 2026-11-28, records installation of ImageHash 4.3.1 and Pillow 10.1.0.

What it is for

This fingerprint helps locate a registered image's associated record from visual content, without relying on embedded provenance metadata. A returned record is a candidate for human examination, not proof of authorship.

How the fingerprint is computed

The registration service decodes with Pillow, converting to RGB if necessary, then calls ImageHash's default-frequency-factor-four phash with hash_size=16. The library converts to grayscale, resizes to 64 × 64 pixels with Lanczos, and applies a discrete cosine transform along both axes. In the upper-left 16 × 16 coefficient block, including DC, a coefficient strictly above the block median becomes one; otherwise zero. Row-order serialization yields 256 bits, or 64 hexadecimal characters. ImageHash 4.3.1 implementation

For indexed lookup, the hexadecimal string is lowercased and left-padded to 64 characters, then divided into 16 positional bands of four hexadecimal characters—16 bits—each. Matching band values at the same position identify candidates; banding does not change the fingerprint.

Failure handling: if the final-image hash helper fails, it returns no fingerprint (None), rather than substituting a truncated file digest. The index registration function rejects values that are not 64 hexadecimal characters. These source changes do not establish that previously stored fallback values have been removed from the index; existing-index cleanup has not been verified here.

How a match is decided

An identical stored perceptual-hash key returns that one record with a score of 100, without running fuzzy search. Otherwise, indexed lookup collects the union of records sharing at least one positional band. The implementation scans the full hash index if the candidate set is empty, if no qualifying candidate record is found, or if banding is disabled.

For ordinary 256-bit fingerprints, let d be the number of differing bits. The score is round(100 × (1 − d/256), 2). Candidates pass when their score is at least the threshold: 85 by default, equivalent to d ≤ 38. The lookup endpoints clamp a supplied threshold to 80–100. For fuzzy search, qualifying results are sorted by score and capped at 50 raw matches. The lookup endpoints then apply visibility rules and return at most 10 visible matches. Anonymous viewers receive public-by-record entries; a verified signed-in owner can also receive their own unpublished entries, marked as owner-only.

For correctly indexed 256-bit fingerprints, 15 or fewer differing bits guarantee at least one unchanged band: at most 15 of the 16 bands can be affected. This guarantees inclusion in the candidate pool when fuzzy lookup runs—not return past the raw-match cap, visibility filter or final ten-result limit. From 16 through 38 differing bits, a fingerprint can pass the default distance rule but share no band. It can still be omitted when another band candidate yields a qualifying record, because that prevents the full-scan fallback. An empty candidate set, or no qualifying candidate record, triggers the full scan.

Other retrieval limits: the exact-key short-circuit can yield an empty visible answer when its sole record is not visible to the viewer, without searching for visible near-matches. The raw 50-result cap can also exclude a visible qualifying record before visibility filtering. These are source-derived consequences, not measured live omission rates. An empty result can also mean the search failed: the similarity-search function returns an empty list on error, so no returned match does not establish that no matching record exists.

These are hash/index bounds, not measured image-transformation success rates. The score is not a probability of authorship or correctness; an exact perceptual-hash match does not establish identical files.

What survives

Our offline test used 50 registered works from one collection and 50 unrelated photographs; screenshots were simulated. A test match required distance ≤38 and at least one identical band; no live index query was made.

  • JPEG re-compression (quality 70 and 40), resizing to 50% and 25%, colour adjustment, and a simulated screenshot cropped to the work: 50/50 matches for each variant.
  • Cropping/reframing failed: a 5% crop per side, a 10% crop per side, and a simulated screenshot including the surrounding page: 0/50 each.
  • A covering mark combined with re-compression, resizing and colour adjustment: 33/50.
  • No false matches observed in 2,500 unrelated-image comparisons or 1,225 pairs of registered works.

These counts describe this test set, not universal recovery or false-match rates. Rotation remains unmeasured. Live lookup performance has not been measured.

An exploratory centre-anchor extension has been tested offline on one image, but is not part of this algorithm and has no established broader recovery or false-match rate.

What it does not do

It does not prove authorship, ownership, licensing, authenticity or the truth of a returned record. It is not the exact-hash Soulmark, and it does not validate a C2PA signature. A Soulmark lookup uses a separate identifier-search path, not this perceptual similarity score or threshold. False matches and missed matches are possible. Deliberately constructed look-alikes were not tested, and no resistance to intentional perceptual-hash matching is claimed. The described lookup returns registry records and provenance references; a person judges their relevance and supporting evidence.

Media types

The algorithm operates on a decoded still image. Encoded-format coverage is unmeasured here; successful decoding is required. No audio, video, document, text or 3D-model support is claimed.

The Soulmark

    We use cookies to keep the platform running smoothly and understand how to improve it. You choose what to allow. Privacy Policy