From e173c29359fb9352d8e1a3c51af524545e312b48 Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 2 Jan 2014 13:43:12 +0000 Subject: [PATCH] --- coders/jp2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/coders/jp2.c b/coders/jp2.c index 20277e122..5195f2572 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -390,6 +390,16 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) if ((jp2_image->comps[i].dx > 1) || (jp2_image->comps[i].dy > 1)) image->colorspace=YUVColorspace; } + if (jp2_image->icc_profile_buf != (unsigned char *) NULL) + { + StringInfo + *profile; + + profile=BlobToStringInfo(jp2_image->icc_profile_buf, + jp2_image->icc_profile_len); + if (profile != (StringInfo *) NULL) + SetImageProfile(image,"icc",profile); + } for (y=0; y < (ssize_t) image->rows; y++) { register PixelPacket -- 2.40.0