From: cristy Date: Wed, 8 Feb 2012 01:04:50 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6224 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ea7a8e883de7623d345f32f90ee99248a4a867e;p=imagemagick --- diff --git a/coders/png.c b/coders/png.c index e682036f3..fa709897b 100644 --- a/coders/png.c +++ b/coders/png.c @@ -2341,8 +2341,11 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, #if defined(PNG_READ_sRGB_SUPPORTED) { if (mng_info->have_global_srgb) - image->rendering_intent=Magick_RenderingIntent_from_PNG_RenderingIntent - (mng_info->global_srgb_intent); + { + image->colorspace=sRGBColorspace; + image->rendering_intent=Magick_RenderingIntent_from_PNG_RenderingIntent + (mng_info->global_srgb_intent); + } if (png_get_sRGB(ping,ping_info,&intent)) { @@ -4235,6 +4238,7 @@ static Image *ReadOneJNGImage(MngInfo *mng_info, { if (length == 1) { + image->colorspace=sRGBColorspace; image->rendering_intent= Magick_RenderingIntent_from_PNG_RenderingIntent(p[0]); image->gamma=0.45455f;