UNPKG

magica

Version:

ImageMagick for browser and Node.js, easy setup, high level API and Command Line Interface, including WASM binary for an easy setup.

7 lines (6 loc) 357 B
import { IFile } from '../types'; /** * Compare the two images and return true if they are equal visually. Optionally, a margin of error can be provided using `fuzz` */ export declare function imageCompare(img1?: IFile, img2?: IFile, fuzz?: number): Promise<boolean>; export declare function imageCompareNumber(img1: IFile, img2: IFile): Promise<number>;