]> granicus.if.org Git - imagemagick/commitdiff
gray(x) is non-linear to adhere to the CSS color standard
authorCristy <urban-warrior@imagemagick.org>
Sun, 24 Dec 2017 21:26:10 +0000 (16:26 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 24 Dec 2017 21:26:10 +0000 (16:26 -0500)
MagickCore/color.c

index 2d9c03cebadf842b5877aaeb65665e25bb8861ba..ee1e4eb87d980ce9665df511734c9d034bb98564 100644 (file)
@@ -2456,7 +2456,7 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
             }
           if (LocaleCompare(colorspace,"gray") == 0)
             {
-              color->colorspace=GRAYColorspace;
+              color->colorspace=sGRAYColorspace;
               color->green=color->red;
               color->blue=color->red;
               if (((flags & SigmaValue) != 0) &&