set color reduction colorspace to that of the remap image @ https://github.com/ImageMagick/ImageMagick/issues/5731

This commit is contained in:
Cristy
2022-11-07 14:58:40 -05:00
parent e437224488
commit 6ea94f252d
+1
View File
@@ -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)
{