From: glennrp Date: Thu, 31 Mar 2011 18:17:25 +0000 (+0000) Subject: Combined width and height into one PNG property X-Git-Tag: 7.0.1-0~7803 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cdb11cd177ff29a9d2d8503ad4c920b404eade4;p=imagemagick Combined width and height into one PNG property --- diff --git a/coders/png.c b/coders/png.c index fd471841a..459a0cbc9 100644 --- a/coders/png.c +++ b/coders/png.c @@ -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);