From e0d3544835dc60c6df16fb077c6963e399c1987e Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 29 Mar 2019 15:43:59 -0400 Subject: [PATCH] https://github.com/dlemstra/Magick.NET/issues/409 --- coders/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/png.c b/coders/png.c index 5957c576f..ab4e0a788 100644 --- a/coders/png.c +++ b/coders/png.c @@ -4334,7 +4334,7 @@ static Image *ReadPNGImage(const ImageInfo *image_info, } if ((IssRGBColorspace(image->colorspace) != MagickFalse) && - ((image->gamma < .45) || (image->gamma > .46)) && + (image->gamma > .75) && !(image->chromaticity.red_primary.x>0.6399f && image->chromaticity.red_primary.x<0.6401f && image->chromaticity.red_primary.y>0.3299f && -- 2.40.0