-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: ignore rectangle #32
Comments
Similarly, I'd love to have a whitelist of comparison zones too! |
Hello. At the moment looks-same is able to compare by regions: looksSame({source: 'img1', boundingBox: {left: 10, top: 10, right: 20, bottom: 20}}, {source: 'img2', boundingBox: {left: 30, top: 30, right: 40, bottom: 40}}, {...opts}, callback) But not able to ignore some region. Add this logic is not really difficult looking at this PR - #51. Do you have some free time to contribute? ;) |
You can define your ignoring rectangles and then if
|
To my mind it's not the best solution. It would be much better if looks-same provided API to ignore some areas. |
Right! I meant as a temporary solution you can use |
Does
looks-same
support ignoring certain areas (rectangles) during comparison?I see that gemini, which is using
looks-same
, allows toignoreElements
. I would expect it (ignoring) is done by means of image-comparison tool?The text was updated successfully, but these errors were encountered: