ignoreRectangles feature
See original GitHub issueProposing to add “ignoreRectagles” feature as in node-resemble-js, where options would support an ignoreRectangles property which is as in resemble:
//array of rectangles, each rectangle is defined as (x, y, width, height)
//e.g. [[325, 170, 100, 40]]
Pixels within these rectangles would not be tested. Unsure of best way to represent these in diff image.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Imaging.FindOptions.Timeout Property - Ranorex
The timeout specifies the time to iteratively search for the specified feature, i.e. when to stop searching anew. The timeout will not abort...
Read more >node-resemble-js | Yarn - Package Manager
node-resemble.js. Analyse and compare images with Javascript. This project does not need canvas or any other binary denpendencies.
Read more >TRVMotionDetector.GetRect, IsRectValid - TRichView
DetectChanges returns the count of these rectangles. Index must be in the range from 0 to count - 1. Not all of these...
Read more >https://raw.githubusercontent.com/kzndzhiro/node-r...
#0.0.4 * rename package name to node-resemble-js #0.0.3 * added ignoreRectangles feature <a name="0.0.0"></a> #0.0.0 * initial commit (started form resemble ...
Read more >puppeteer-screenshot-tester - npm
... ignoreColors = false[, matchingBox = { ignoreRectangles = [], includeRectangle = [] } [, errorSettings ... returns: <[function]> resolves to function ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Another advantage of including this feature in the package is that the color of the ignore rectangles could be set to black in the diff image, making it clear what had been excluded from the comparison.
Setting the color to black in the input images does not produce a diff image that adequately distinguishes ignore rectangles from darker parts of the input images.
You could black-out the resulting diff image as well, but that’s getting a be a lot of extra steps.
No plans for now, to keep it simple. There’s a workaround: