]> granicus.if.org Git - imagemagick/commitdiff
Combined width and height into one PNG property
authorglennrp <glennrp@git.imagemagick.org>
Thu, 31 Mar 2011 18:17:25 +0000 (18:17 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Thu, 31 Mar 2011 18:17:25 +0000 (18:17 +0000)
coders/png.c

index fd471841a8294a14e75a57498d56621dba680f52..459a0cbc9da8910e9de46386663b6a6a0b78fd40 100644 (file)
@@ -2297,11 +2297,9 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
      /* encode ping_width, ping_height, ping_bit_depth, ping_color_type,
         ping_interlace_method in value */
 
-     (void) FormatMagickString(msg,MaxTextExtent,"%d",(int) ping_width);
-     (void) SetImageProperty(image,"PNG:IHDR.width           ",msg);
-
-     (void) FormatMagickString(msg,MaxTextExtent,"%d",(int) ping_height);
-     (void) SetImageProperty(image,"PNG:IHDR.height          ",msg);
+     (void) FormatMagickString(msg,MaxTextExtent,
+         "%d, %d",(int) ping_width, (int) ping_height);
+     (void) SetImageProperty(image,"PNG:IHDR.width,height    ",msg);
 
      (void) FormatMagickString(msg,MaxTextExtent,"%d",(int) ping_bit_depth);
      (void) SetImageProperty(image,"PNG:IHDR.bit_depth       ",msg);