-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Image Compare doesn't work like expected with transparent images #1220
Comments
Can you please add the two images so I can see what is happening? |
What is your output? I am getting this as the output: |
I get When I compare the orignal images I get: 0,8509939183698039 |
I'm still getting values above 1 with Magick.NET 12.0.0
|
We tried to make a change inside ImageMagick that turned out to be incorrect so we had to revert that. We are now investigating if this is even wrong. You are now using |
Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT main branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://imagemagick.org/archive/beta/ by sometime tomorrow. |
Thank you for fixing it 👍 |
I will try to add a unit test before the next release to check if this issue was resolved. Already gave it a try on the command line and got this output:
|
Thank you a lot 🙏 |
I am not sure what you are asking and trying to accomplish. Maybe you could ask for more detailed help in the discussions of the @ImageMagick repository and then start a new discussion here if you need help to translate something to C#. |
Magick.NET version
Magick.NET-Q16-AnyCPU-11.3.0
Environment (Operating system, version and so on)
Windows 10 - Version 21H1, 19043.1826
Description
I'm not sure if this is an issue of ImageMagick or the .NET version, but the image compare doesn't work as expected with transparent PNG's.
Steps to Reproduce
Put in the method 2 transparent images
Expected result: A value between 0 and 1
Actual result: A value above 1
The text was updated successfully, but these errors were encountered: