Commit 4041062a9 for imagemagick.org
commit 4041062a95d029a65f1bccbf87e7bd6527187bd6
Author: Cristy <urban-warrior@imagemagick.org>
Date: Mon Jun 22 19:59:14 2026 -0400
remove quantization
diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c
index 615fc4f40..08da699c3 100644
--- a/MagickCore/statistic.c
+++ b/MagickCore/statistic.c
@@ -1785,12 +1785,6 @@ MagickExport ChannelPerceptualHash *GetImagePerceptualHash(const Image *image,
break;
status=TransformImageColorspace(hash_image,(ColorspaceType) colorspace,
exception);
- if (status == MagickFalse)
- {
- hash_image=DestroyImage(hash_image);
- break;
- }
- status=SetImageDepth(hash_image,8,exception);
if (status == MagickFalse)
{
hash_image=DestroyImage(hash_image);