Skip to content

DiffOptions

Defined in: packages/image/src/options.ts:2

Options that control how two images are compared.

failOnSizeChange: boolean

Defined in: packages/image/src/options.ts:10

Whether a size mismatch between images should fail the diff. When false, only the overlapping region is diffed.


includeAntialiasing: boolean

Defined in: packages/image/src/options.ts:8

Whether to include antialiasing artifacts when counting differing pixels.


maxDiffRatio: number

Defined in: packages/image/src/options.ts:6

Maximum allowed ratio of differing pixels for a diff to pass.


pixelThreshold: number

Defined in: packages/image/src/options.ts:4

Per-pixel difference threshold (0-1) above which a pixel counts as different.