]> granicus.if.org Git - imagemagick/commitdiff
Gray colorspace is linear
authorCristy <urban-warrior@imagemagick.org>
Sun, 24 Dec 2017 17:48:16 +0000 (12:48 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 24 Dec 2017 17:49:19 +0000 (12:49 -0500)
MagickCore/colorspace.c

index 45c443112ade0a803e8d938fe46a89b7e8a9b90e..698be02f7dd3c92b80d58f2c656220ee33631613 100644 (file)
@@ -1155,8 +1155,7 @@ MagickExport MagickBooleanType SetImageColorspace(Image *image,
   type=image->type;
   if (IsGrayColorspace(colorspace) != MagickFalse)
     {
-      if ((image->intensity == Rec601LuminancePixelIntensityMethod) ||
-          (image->intensity == Rec709LuminancePixelIntensityMethod))
+      if (image->colorspace == GRAYColorspace)
         image->gamma=1.000;
       type=GrayscaleType;
     }