MagickExport MagickBooleanType SetImageColorspace(Image *image,
const ColorspaceType colorspace,ExceptionInfo *exception)
{
+ if (image->colorspace == colorspace)
+ return(MagickTrue);
image->colorspace=colorspace;
image->rendering_intent=UndefinedIntent;
image->gamma=1.000;
}
if (IsGrayColorspace(colorspace) != MagickFalse)
image->type=GrayscaleType;
+ (void) DeleteImageProfile(image,"icc"); /* remove color profile */
+ (void) DeleteImageProfile(image,"icm");
return(SyncImagePixelCache(image,exception));
}
\f