mapbox / mapbox/pixelmatch

Support exclusion zones

Open
#163 12 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
7k
Forks
327
PR merge metrics
No merged PRs in 30d

Description

This is a really great tool for checking images.
However, sometimes there are dynamic areas in the actual image which is subject to verification.
So a static expected image fixture won't do the job.
A simple solution would be : before comparing the images draw a black rectangle on specified position on both expected and actual images so any difference would be eliminated.
Another more elegant solution might be : mark the exclusion zones in the expected image in a certain way and the tool would simply ignore them . They can be marked with either maximum opacity alpha:255 or specific color which can serve as ignore color.
Does this sound like a useful feature and what option seems better?
Regards

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Read the repository's image-comparison API and the issue discussion first, then clarify which exclusion-zone approach is accepted; done means the chosen behavior is implemented and dynamic regions no longer affect comparison results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.