MCPcopy
hub / github.com/jimp-dev/jimp / compareHashes

Function compareHashes

plugins/plugin-hash/src/index.ts:126–129  ·  view source on GitHub ↗
(hash1: string, hash2: string)

Source from the content-addressed store, hash-verified

124 * ```
125 */
126export function compareHashes(hash1: string, hash2: string) {
127 const phash = new ImagePHash();
128 return phash.distance(hash1, hash2);
129}

Callers 1

index.test.tsFile · 0.85

Calls 1

distanceMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…