From: Cristy Date: Sat, 3 Feb 2018 16:14:57 +0000 (-0500) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33443 X-Git-Tag: 7.0.7-23~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9e21b3a70b909905237ac6e145908acf1750aa3;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33443 --- diff --git a/MagickCore/profile.c b/MagickCore/profile.c index 7133225d4..6c33167b3 100644 --- a/MagickCore/profile.c +++ b/MagickCore/profile.c @@ -1011,30 +1011,6 @@ MagickExport MagickBooleanType ProfileImage(Image *image,const char *name, (target_colorspace == UndefinedColorspace)) ThrowProfileException(ImageError,"ColorspaceColorProfileMismatch", name); - if (((source_colorspace == LinearGRAYColorspace) || - (source_colorspace == GRAYColorspace)) && - (SetImageGray(image,exception) == MagickFalse)) - ThrowProfileException(ImageError,"ColorspaceColorProfileMismatch", - name); - if ((source_colorspace == CMYKColorspace) && - (image->colorspace != CMYKColorspace)) - ThrowProfileException(ImageError,"ColorspaceColorProfileMismatch", - name); - if ((source_colorspace == XYZColorspace) && - (image->colorspace != XYZColorspace)) - ThrowProfileException(ImageError,"ColorspaceColorProfileMismatch", - name); - if ((source_colorspace == YCbCrColorspace) && - (image->colorspace != YCbCrColorspace)) - ThrowProfileException(ImageError,"ColorspaceColorProfileMismatch", - name); - if ((source_colorspace != CMYKColorspace) && - (source_colorspace != LabColorspace) && - (source_colorspace != XYZColorspace) && - (source_colorspace != YCbCrColorspace) && - (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)) - ThrowProfileException(ImageError,"ColorspaceColorProfileMismatch", - name); switch (image->rendering_intent) { case AbsoluteIntent: intent=INTENT_ABSOLUTE_COLORIMETRIC; break;