static inline MagickBooleanType IsRGBColorspace(const ColorspaceType colorspace)
{
if ((IsGrayColorspace(colorspace) != MagickFalse) ||
- (colorspace == RGBColorspace) || (colorspace == sRGBColorspace) ||
- (colorspace == TransparentColorspace))
+ (colorspace == RGBColorspace) || (colorspace == TransparentColorspace))
return(MagickTrue);
return(MagickFalse);
}
} TransformPacket;
\f
/*
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% %
/*
Convert the reference image from an alternate colorspace to RGB.
*/
- if ((colorspace == RGBColorspace) || (colorspace == sRGBColorspace) ||
- (colorspace == TransparentColorspace))
+ if ((colorspace == RGBColorspace) || (colorspace == TransparentColorspace))
return(TransformRGBImage(image,colorspace,exception));
status=MagickTrue;
- if ((image->colorspace != RGBColorspace) &&
- (image->colorspace != TransparentColorspace) &&
- (image->colorspace != GRAYColorspace))
+ if (IsRGBColorspace(image->colorspace) == MagickFalse)
status=TransformRGBImage(image,image->colorspace,exception);
/*
Convert the reference image from RGB to an alternate colorspace.
ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
image->filename);
}
- switch (colorspace)
+ switch (image->colorspace)
{
case OHTAColorspace:
{
{ "-use-pixmap", 1L, NonConvertOptionFlag, MagickFalse },
{ "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
{ "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
- { "+version", 0L, DepreciatedOptionFlag, MagickTrue },
+ { "+version", 0L, DeprecateOptionFlag, MagickTrue },
{ "-version", 1L, SpecialOptionFlag, MagickFalse },
{ "+view", 0L, ImageInfoOptionFlag, MagickFalse },
{ "-view", 1L, ImageInfoOptionFlag, MagickFalse },