From e4d5fafd9fbdf0985a964fe9efee73d5d37ccd44 Mon Sep 17 00:00:00 2001 From: glennrp Date: Mon, 22 Jul 2013 00:11:04 +0000 Subject: [PATCH] Don't write jpeg: properties in PNG output. --- coders/png.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/coders/png.c b/coders/png.c index 00b3d0cef..2be6db9a3 100644 --- a/coders/png.c +++ b/coders/png.c @@ -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 || -- 2.40.0