]> granicus.if.org Git - imagemagick/commitdiff
Set intensity method before transforming PNG to gray colorspace while reading.
authorglennrp <glennrp@git.imagemagick.org>
Sat, 5 Oct 2013 14:59:56 +0000 (14:59 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Sat, 5 Oct 2013 14:59:56 +0000 (14:59 +0000)
coders/png.c

index 9261963f92f82a41904f34df9f73b0c4dad614ce..22d39baa3e8b02a4b4bd52a70bc0942e5f7007a2 100644 (file)
@@ -3074,6 +3074,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
           /* Set image->gamma to 1.0, image->rendering_intent to Undefined,
            * image->colorspace to GRAY, and reset image->chromaticity.
            */
+          image->intensity = Rec709LuminancePixelIntensityMethod;
           SetImageColorspace(image,GRAYColorspace,exception);
         }
     }