]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1469
authorCristy <mikayla-grace@urban-warrior.org>
Sun, 3 Feb 2019 00:57:08 +0000 (19:57 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Sun, 3 Feb 2019 00:57:08 +0000 (19:57 -0500)
coders/png.c

index 6754a6b9b5a706254dbd1431caa5f0eb8151524a..cb6150e62543f85d2d00bb07962fb8f65ce593dd 100644 (file)
@@ -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)
             {