]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 3 Feb 2012 18:29:24 +0000 (18:29 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 3 Feb 2012 18:29:24 +0000 (18:29 +0000)
MagickCore/colorspace.c

index f069324e8fee1a8f863a30962a9973d4d23314fc..902cc01129b3fd9542d28e055831d7c1341ffd5e 100644 (file)
@@ -1261,7 +1261,8 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image,
     return(SetImageColorspace(image,colorspace,exception));
   if (image->colorspace == colorspace)
     return(MagickTrue);
-  if ((colorspace == RGBColorspace) || (colorspace == TransparentColorspace))
+  if ((colorspace == RGBColorspace) || (colorspace == sRGBColorspace) ||
+      (colorspace == TransparentColorspace))
     return(TransformRGBImage(image,colorspace,exception));
   status=MagickTrue;
   if ((image->colorspace != RGBColorspace) &&