template-project/node_modules/@jimp/plugin-hash/dist/commonjs/phash.d.ts
2025-05-30 18:13:30 +08:00

13 lines
431 B
TypeScript

import { JimpClass } from "@jimp/types";
declare class ImagePHash {
size: number;
smallerSize: number;
constructor(size?: number, smallerSize?: number);
distance(s1: string, s2: string): number;
/**
* Returns a 'binary string' (like. 001010111011100010) which is easy to do a hamming distance on.
*/
getHash(img: JimpClass): string;
}
export default ImagePHash;
//# sourceMappingURL=phash.d.ts.map