diffImages
diffImages(
baseline,current,options,codec?):Promise<DiffResult>
Defined in: engine.ts:15
Compare baseline and current screenshots, returning pass/fail and a diff image.
Parameters
Section titled “Parameters”baseline
Section titled “baseline”Buffer
Baseline PNG buffer.
current
Section titled “current”Buffer
Current capture PNG buffer.
options
Section titled “options”Pixel threshold and ratio limits.
codec?
Section titled “codec?”ImageCodec = pngjsCodec
Decodes and encodes the PNGs; pngjs unless an engine says otherwise.
Returns
Section titled “Returns”Promise<DiffResult>
The diff result with pixel counts and an optional overlay image.