@alttiri/image-hash
Version:
Alt-Image-Hash. An alternative image hashing library.
17 lines (16 loc) • 502 B
TypeScript
import { Hasher } from "./types.js";
/** difference hash */
export declare const dHash: Hasher;
/** average hash */
export declare const aHash: Hasher;
/** median hash */
export declare const mHash: Hasher;
/**
* block hash
*
* By default, it uses "BT601" for gray-scaling, and uses horizontal bands with 2 pixels height.
*
* With `classic` option — "original-like" block hash that uses "average" for gray-scaling,
* and uses 4 horizontal bands total.
* */
export declare const bHash: Hasher;