"Images dimensions mismatch" error in full page screenshot comparison
See original GitHub issueI would like to be able to use the equalsWithDiff function when using a full-page screenshot. Currently I git this error: “Images dimensions mismatch: image1 - 1548x3284; image2 - 1548x3291”
The difference is 7 pixels in height. I am using Chrome.
My code:
BufferedImage expectedImage = null;
try {
expectedImage = ImageIO.read(new File("C:\\2020_06_12_13_25_31_832.png"));
} catch (IOException e) {
e.printStackTrace();
}
Shutterbug.shootPage(driver,ScrollStrategy.WHOLE_PAGE).equalsWithDiff(expectedImage,"screenshots2");
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Produce a warning if two images' dimensions don't match #23
The two images you compare have different dimensions — the first is 156px width and the second 154px. This breaks the comparison completely ......
Read more >FSTC Front-Rear Image Dimension Mismatch #009.00 Check ...
An image defect that is due to a dimensional (width and/or height) mismatch between the front and rear images of the source document....
Read more >Recogniform Image Quality Control and Usability Assurance
Our software allows to evaluate automatically image quality and usability measuring image quality defects and/or deviations from the ideal perfect image ...
Read more >How to solve dimensions mismatch error in TensorFlow ...
Reason: Your labels shape (28,28,3) is incompatible with the models' output shape (32,32,3) , and it is because of divisions by your encoder ......
Read more >Image Comparison (Visual Regression Testing) Service
It could be that the error Width and height cannot be negative is thrown. 9 out of 10 times this is related to...
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 FreeTop 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
Top GitHub Comments
Hi @jpratt2 , at the moment its pixel by pixel comparison only. I’ll have a look at possible reasons why the size differs.
Closing as outdated. Fixed by adding wait before page screenshot