Commit fb3876d9b for imagemagick.org
commit fb3876d9b66d63cdf6d75dc9018ee10234a6b717
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Jun 20 19:37:54 2026 -0400
revert
diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c
index 3c5903733..86ed8ae59 100644
--- a/MagickCore/statistic.c
+++ b/MagickCore/statistic.c
@@ -1797,13 +1797,8 @@ MagickExport ChannelPerceptualHash *GetImagePerceptualHash(const Image *image,
perceptual_hash[0].number_channels+=GetImageChannels(hash_image);
for (channel=0; channel <= MaxPixelChannels; channel++)
for (j=0; j < MaximumNumberOfPerceptualHashes; j++)
- {
perceptual_hash[channel].phash[i][j]=(-MagickSafeLog10(fabs(
moments[channel].invariant[j])));
- perceptual_hash[CompositePixelChannel].phash[i][j]+=(
- -MagickSafeLog10(fabs(moments[CompositePixelChannel].invariant[j])))/
- GetImageChannels(hash_image);;
- }
hash_image=DestroyImage(hash_image);
moments=(ChannelMoments *) RelinquishMagickMemory(moments);
}