]> granicus.if.org Git - imagemagick/commitdiff
Remove from coders/png.c the references to Rec601LumaColorspace and
authorglennrp <glennrp@git.imagemagick.org>
Thu, 5 Dec 2013 20:21:45 +0000 (20:21 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Thu, 5 Dec 2013 20:21:45 +0000 (20:21 +0000)
Rec709LumaColorspace, which do not exist in IM7.

coders/png.c

index 23147a148406a6ca679a65c90c5044d66352a755..104b4ccf4fd9e44e2d627eaf57b40dbb4f41d5d9 100644 (file)
@@ -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");