From: Cristy Date: Sat, 3 Mar 2018 01:26:16 +0000 (-0500) Subject: Return pseudo-class image for -type bilevel option X-Git-Tag: 7.0.7-25~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a59574ad7fed078997b75f2b4b5d60596aff21c3;p=imagemagick Return pseudo-class image for -type bilevel option --- diff --git a/MagickCore/quantize.c b/MagickCore/quantize.c index 5c3a4be06..a9037af6b 100644 --- a/MagickCore/quantize.c +++ b/MagickCore/quantize.c @@ -668,7 +668,8 @@ static MagickBooleanType AssignImageColors(Image *image,CubeInfo *cube_info, } } (void) SyncImage(image,exception); - if (cube_info->quantize_info->colorspace != UndefinedColorspace) + if ((cube_info->quantize_info->colorspace != UndefinedColorspace) && + (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)) (void) TransformImageColorspace(image,colorspace,exception); return(MagickTrue); }