]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/colorspace.c
(no commit message)
[imagemagick] / MagickCore / colorspace.c
index 3304eebc58c5e73764885805a7f7a68f3dd67ea5..0ea8c8a502bede2baccbd1afd5cec51ff66e6722 100644 (file)
@@ -1139,7 +1139,7 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image,
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (image->colorspace == colorspace)
     return(MagickTrue);
-  if ((IssRGBCompatibleColorspace(image->colorspace) != MagickFalse) &&
+  if ((image->colorspace == GRAYColorspace) && (image->gamma != 1.0) &&
       (colorspace == sRGBColorspace))
     return(MagickTrue);
   if (colorspace == UndefinedColorspace)