Skip to content
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

Comparing two different images seems to fail #205

Closed
thathurtabit opened this issue Nov 14, 2020 · 2 comments
Closed

Comparing two different images seems to fail #205

thathurtabit opened this issue Nov 14, 2020 · 2 comments

Comments

@thathurtabit
Copy link

thathurtabit commented Nov 14, 2020

Hi, my apologies if this is related to #195

On the demo site, when comparing two images (I've tried both jpegs and pngs) with no overlap, it only states:
"The second image is 20.44% different compared to the first."
Whereas I would imagine it should be 100% different?

Output:
output

Input 1:
target

Input 2:
user

@thathurtabit thathurtabit changed the title Comparing Two PNGs seems to fail Comparing two different images seems to fail Nov 14, 2020
@gaitat
Copy link

gaitat commented Dec 15, 2020

I would assume the comparison percentage comes from the total number of pixels that are different. Your images have a lot of white pixels which are not computed as different.

@jamescryer
Copy link
Member

The pink pixels in the diff are 20.44% of the total diff image, even though the source images are literally 100% different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants