From: glennrp Date: Thu, 5 Dec 2013 20:21:45 +0000 (+0000) Subject: Remove from coders/png.c the references to Rec601LumaColorspace and X-Git-Tag: 7.0.1-0~3060 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c28acd632b7ea1724a54191d15db932f2e4d25e6;p=imagemagick Remove from coders/png.c the references to Rec601LumaColorspace and Rec709LumaColorspace, which do not exist in IM7. --- diff --git a/coders/png.c b/coders/png.c index 23147a148..104b4ccf4 100644 --- a/coders/png.c +++ b/coders/png.c @@ -8284,9 +8284,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, } } - if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse && - image->colorspace != Rec601LumaColorspace && - image->colorspace != Rec709LumaColorspace) + if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) (void) TransformImageColorspace(image,sRGBColorspace,exception); /* @@ -8802,9 +8800,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, ping_have_color=MagickFalse; ping_have_non_bw=MagickFalse; - if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse && - image->colorspace != Rec601LumaColorspace && - image->colorspace != Rec709LumaColorspace) + if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) && { (void) LogMagickEvent(CoderEvent,GetMagickModule(), "incompatible colorspace");