Skip to content

fix: align ignoreColors with resemble brightness comparison#1178

Merged
wswebcreation merged 1 commit into
ws-ignore-feature-parityfrom
ws-ignore-colors-parity
Jul 4, 2026
Merged

fix: align ignoreColors with resemble brightness comparison#1178
wswebcreation merged 1 commit into
ws-ignore-feature-parityfrom
ws-ignore-colors-parity

Conversation

@wswebcreation

Copy link
Copy Markdown
Member

In v10, ignoreColors grayscaled images with BT.601 weights before pixelmatch, which does not match resemble.js brightness-only comparison (0.3/0.59/0.11 luma).

What changed

  • Grayscale preprocessing now uses resemble luma coefficients via applyResembleGrayscale
  • Added unit and integration tests for same-brightness pass and brightness-diff fail cases

- replace BT.601 grayscale preprocessing in compareImages
- add unit and integration tests for ignoreColors parity
- add patch changeset for image-comparison-core and visual-service
@changeset-bot

changeset-bot Bot commented Jul 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2bd0f7a

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

@wswebcreation wswebcreation merged commit 750244d into ws-ignore-feature-parity Jul 4, 2026
10 checks passed
@wswebcreation wswebcreation deleted the ws-ignore-colors-parity branch July 4, 2026 06:19
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