]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 2 Jan 2014 13:43:12 +0000 (13:43 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 2 Jan 2014 13:43:12 +0000 (13:43 +0000)
coders/jp2.c

index 20277e122643ffc50949159ca68496cad1d5d8f4..5195f2572cdd286301bdbd10a85665fa2e6ad806 100644 (file)
@@ -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