DiffOptions
Defined in: packages/image/src/options.ts:2
Options that control how two images are compared.
Properties
Section titled “Properties”failOnSizeChange
Section titled “failOnSizeChange”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
Section titled “includeAntialiasing”includeAntialiasing:
boolean
Defined in: packages/image/src/options.ts:8
Whether to include antialiasing artifacts when counting differing pixels.
maxDiffRatio
Section titled “maxDiffRatio”maxDiffRatio:
number
Defined in: packages/image/src/options.ts:6
Maximum allowed ratio of differing pixels for a diff to pass.
pixelThreshold
Section titled “pixelThreshold”pixelThreshold:
number
Defined in: packages/image/src/options.ts:4
Per-pixel difference threshold (0-1) above which a pixel counts as different.