question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Images dimensions mismatch" error in full page screenshot comparison

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
glibascommented, Aug 11, 2020

Hi @jpratt2 , at the moment its pixel by pixel comparison only. I’ll have a look at possible reasons why the size differs.

0reactions
glibascommented, Apr 4, 2022

Closing as outdated. Fixed by adding wait before page screenshot

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found