From c28acd632b7ea1724a54191d15db932f2e4d25e6 Mon Sep 17 00:00:00 2001 From: glennrp Date: Thu, 5 Dec 2013 20:21:45 +0000 Subject: [PATCH] Remove from coders/png.c the references to Rec601LumaColorspace and Rec709LumaColorspace, which do not exist in IM7. --- coders/png.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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"); -- 2.50.1