UNPKG

imghash

Version:

Image perceptual hash calculation for node

14 lines (13 loc) 494 B
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; }; export = api;