From: Cristy Date: Sun, 3 Feb 2019 00:57:08 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/1469 X-Git-Tag: 7.0.8-26~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2e09ba73a300e725e3d7bea817d8c9accc8d225;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1469 --- diff --git a/coders/png.c b/coders/png.c index 6754a6b9b..cb6150e62 100644 --- a/coders/png.c +++ b/coders/png.c @@ -3951,7 +3951,14 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, if (!png_get_valid(ping,ping_info,PNG_INFO_pHYs) || (LocaleCompare(text[i].key,"density") != 0 && LocaleCompare(text[i].key,"units") != 0)) - (void) SetImageProperty(image,text[i].key,value,exception); + { + char + key[MagickPathExtent]; + + (void) FormatLocaleString(key,MagickPathExtent,"png:%s", + text[i].key); + (void) SetImageProperty(image,key,value,exception); + } if (logging != MagickFalse) {