]> granicus.if.org Git - imagemagick/commitdiff
Don't write jpeg: properties in PNG output.
authorglennrp <glennrp@git.imagemagick.org>
Mon, 22 Jul 2013 00:11:04 +0000 (00:11 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Mon, 22 Jul 2013 00:11:04 +0000 (00:11 +0000)
coders/png.c

index 00b3d0cef42b4443d5747598eae60810ba4c1a8d..2be6db9a3e7233e13c49cb6628fd98138e1c60e8 100644 (file)
@@ -11238,8 +11238,12 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
 
       value=GetImageProperty(image,property,exception);
 
-      /* Don't write any "png:" properties; those are just for "identify" */
-      if (LocaleNCompare(property,"png:",4) != 0 &&
+      /* Don't write any "png:" or "jpeg:" properties; those are just for
+       * "identify" or for passing through to another JPEG
+       */
+      if ((LocaleNCompare(property,"png:",4) != 0 &&
+           LocaleNCompare(property,"jpeg:",5)) &&
+
 
           /* Suppress density and units if we wrote a pHYs chunk */
           (ping_exclude_pHYs != MagickFalse      ||