Skip to content

Commit

Permalink
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33443
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 3, 2018
1 parent 3d07bd2 commit c4d1951
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions magick/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,32 +984,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 != LinearGRAYColorspace) &&
(source_colorspace != GRAYColorspace) &&
(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;
Expand Down

0 comments on commit c4d1951

Please sign in to comment.