From 6ea94f252d4a03e24eb3ef31cdada95667de3aca Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 7 Nov 2022 14:58:40 -0500 Subject: [PATCH] set color reduction colorspace to that of the remap image @ https://github.com/ImageMagick/ImageMagick/issues/5731 --- MagickCore/quantize.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MagickCore/quantize.c b/MagickCore/quantize.c index 1d565105a1..9e437a959b 100644 --- a/MagickCore/quantize.c +++ b/MagickCore/quantize.c @@ -3626,6 +3626,7 @@ MagickExport MagickBooleanType RemapImage(const QuantizeInfo *quantize_info, if (cube_info == (CubeInfo *) NULL) ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename); + cube_info->quantize_info->colorspace=remap_image->colorspace; status=ClassifyImageColors(cube_info,remap_image,exception); if (status != MagickFalse) {