imghash
Version:
Image perceptual hash calculation for node
15 lines (14 loc) • 520 B
text/typescript
import { ImageData } from "blockhash-core";
//#region src/index.d.ts
declare function hash(filepath: string | Buffer, bits?: number | null, format?: string): Promise<string>;
declare function hashRaw(data: ImageData, bits: number): string;
declare function hexToBinary(s: string): string;
declare function binaryToHex(s: string): string;
declare const api: {
hash: typeof hash;
hashRaw: typeof hashRaw;
hexToBinary: typeof hexToBinary;
binaryToHex: typeof binaryToHex;
};
//#endregion
export { api as default };