Skip to content

fix: wire ignoreAntialiasing to pixelmatch AA forgiveness toggle#1175

Open
wswebcreation wants to merge 1 commit into
mainfrom
fix/ignore-antialiasing-pixelmatch-toggle
Open

fix: wire ignoreAntialiasing to pixelmatch AA forgiveness toggle#1175
wswebcreation wants to merge 1 commit into
mainfrom
fix/ignore-antialiasing-pixelmatch-toggle

Conversation

@wswebcreation

Copy link
Copy Markdown
Member

In v10 the pixelmatch engine always ran with anti-aliasing forgiveness enabled, even when ignoreAntialiasing was false. The option had no effect on comparison behaviour.

What changed

  • ignoreAntialiasing now toggles pixelmatch's AA handling: true forgives anti-aliased pixels, false counts them as mismatches.
  • The default is now ignoreAntialiasing: true, matching the forgiving pixelmatch behaviour users already get in v10.
  • ignoreLess and ignoreNothing keep their own threshold behaviour; AA forgiveness is controlled independently via ignoreAntialiasing.

Migration

  • No action needed if you rely on the current forgiving defaults, comparison behaviour stays the same.
  • If you explicitly set ignoreAntialiasing: true today, that remains redundant but harmless.
  • Set ignoreAntialiasing: false when you need strict comparison where anti-aliased pixels count as differences.

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c8676cb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@wdio/image-comparison-core Patch
@wdio/visual-service Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant