Skip to content

feat: add new option for ignored regions - #153

Closed
hongdeyuan wants to merge 7 commits into
mapbox:mainfrom
hongdeyuan:ignored-regions
Closed

hongdeyuan wants to merge 7 commits into
mapbox:mainfrom
hongdeyuan:ignored-regions

Conversation

@hongdeyuan

@hongdeyuan hongdeyuan commented Feb 27, 2025

Copy link
Copy Markdown

Hello, I personally think that 「ignored regions」 is a great feature; I helped resolve the conflict (#122 @rafalszemraj), Can you(@mourner) merge it ?

Help us ignored many factors

  • dynamic data
  • animations
  • other...
    image

@iso-ivanv

Copy link
Copy Markdown

Looks great!
However have you considered embedding the ignored regions inside the expected image?
For example if you have an expected image with areas which are marked with full opacity or particular color these areas can be excluded from matching.

Venefilyn added a commit to Venefilyn/pixelmatch that referenced this pull request Sep 8, 2026
New check where if a value from `ignoreMask` is greater than 0 it will
be ignored from the check. The ignore mask itself needs to be exact
width and height of the images provided.

One could write an array manually or provide a PNG image with
RGBA(0,0,0,0) for pixels to check and any other color value for what
to skip.

Fixes: mapbox#163
Supercedes: mapbox#153
Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
@mourner

mourner commented Sep 10, 2026

Copy link
Copy Markdown
Member

Closing in favor of #171

@mourner mourner closed this Sep 10, 2026
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.

3 participants