From 7cdb11cd177ff29a9d2d8503ad4c920b404eade4 Mon Sep 17 00:00:00 2001 From: glennrp Date: Thu, 31 Mar 2011 18:17:25 +0000 Subject: [PATCH] Combined width and height into one PNG property --- coders/png.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); -- 2.40.0