PerceptualHash is quite different on version 14.0.0 vs prior versions. Expected? #1720
-
Hi, thanks for a great library! I have observed that the The repo includes a single (public domain) image asset. I have then written some unit tests and generated the perceptual hash on:
All 3 package versions are present in the csproj for your convenience. I observe that the PerceptualHash changes ever so slightly between 7.16.0 and 13.10.0, but the unit test However the unit test I am not sure if this is intended. I've observed pretty stable / negligible changes across versions between 7.16.0 and 13.10.0 over my years of using the NuGet, but this one stood out so I wanted to highlight it just in case it wasn't intended. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks for reaching out but this was an intended change and mentioned in the changelog of release 14.0.0: https://github.com/dlemstra/Magick.NET/releases/tag/14.0.0
You will get the "old" result if you do |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out but this was an intended change and mentioned in the changelog of release 14.0.0: https://github.com/dlemstra/Magick.NET/releases/tag/14.0.0
You will get the "old" result if you do
image.PerceptualHash(ColorSpace.sRGB, ColorSpace.HCLp)
instead. This was an intended change because ImageMagick changed it's default implementation a while back. And with a major release I could finally make that change in this library.