From e9e21b3a70b909905237ac6e145908acf1750aa3 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 3 Feb 2018 11:14:57 -0500 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33443 --- MagickCore/profile.c | 24 ------------------------ 1 file changed, 24 deletions(-) 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; -- 2.40.0