static inline MagickBooleanType IsRGBColorspace(const ColorspaceType colorspace)
{
- if ((colorspace == RGBColorspace) || (colorspace == scRGBColorspace) ||
- (colorspace == XYZColorspace))
+ if ((colorspace == RGBColorspace) || (colorspace == scRGBColorspace))
return(MagickTrue);
return(MagickFalse);
}
type=GrayscaleType;
}
else
- if (IsRGBColorspace(colorspace) != MagickFalse)
+ if ((IsRGBColorspace(colorspace) != MagickFalse) ||
+ (colorspace == XYZColorspace))
image->gamma=1.000;
if (image->gamma == (1.000/2.200))
{
(void) sscanf(image_info->filename,"%*[^-]-%[^-]",colorname+4);
icc_color=MagickTrue;
}
- if (IsGrayColorspace(start_pixel.colorspace) != MagickFalse)
+ if (IsGrayColorspace(start_color.colorspace) != MagickFalse)
image->intensity=Rec601LuminancePixelIntensityMethod;
- (void) SetImageColorspace(image,start_pixel.colorspace,exception);
+ (void) SetImageColorspace(image,start_color.colorspace,exception);
status=QueryColorCompliance(colorname,AllCompliance,&start_color,exception);
if (status == MagickFalse)
{