-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
[BUG] Different images are considered equal #211
Comments
Hi @carlosame. Also, feel free to do it by yourself if you want it. Best regards, Roman. |
I rolled out my project's own image comparisons, given that it was the most natural thing to do: EchoSVG is a fork of Apache Batik, which already had image comparisons (and even assembled diff and side-to-side comparison images). Batik's image comparisons were done at the file stream level though, which is why I introduced your project in EchoSVG. Now EchoSVG does its own image comparisons at the pixel level, and it appears to work well (thanks to it, I found several more images where Although I no longer use this project, I hope that you manage to fix this issue given that AFAIK this is the only general-purpose image comparison library written in Java (I haven't tested my stuff outside of my project's own files and therefore cannot endorse it as a generic solution). |
Hi, @romankh3 , |
Hi @Cheese-Bar, feel free to work on it. Wish you good luck 👍 |
Hello @romankh3 , I found The picture below shows the result at The next picture shows the result at But unfortunately, such a change seems to affect the detection of other images, especially with In But in
The problem should be that the two images are obtained in different ways, or there is a compression loss. So maybe it's a useful proposition to specify the size of How do you consider about it? I can provided my test case or do some further improvement. |
Description
I'm using this project as one of the image comparison methods being used in the EchoSVG tests, and noticed that one of the tests that should fail was systematically passing. For example, the following two images are identical (match) according to this project (version 4.4.0):
The last color is not the same (#c20272 vs #df0272), and the text located next to that color also varies (the images are transparent, so if you are using Github's dark theme you may need to download them and open elsewhere to read it).
To Reproduce
To be sure, I ran this separate piece of code to compare the two images (in case it was my testing infrastructure screwing things up):
and it failed (the different images do match). The above snippet is the obvious reproducer.
Expected behavior
The images are different and should not match.
Desktop
The text was updated successfully, but these errors were encountered: