]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 26 Sep 2010 14:12:54 +0000 (14:12 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 26 Sep 2010 14:12:54 +0000 (14:12 +0000)
coders/jpeg.c

index 674420f30296bf77b02381f1c399369453069f2b..9b1bac46a9449e907abf621b70dd7feb1bfdc17e 100644 (file)
@@ -520,7 +520,10 @@ static boolean ReadIPTCProfile(j_decompress_ptr jpeg_info)
     }
   else
     {
-      status=SetImageProfile(image,"8bim",profile);
+      if (strcmp(GetStringInfoDatum(profile),"8BIM") != 0)
+        status=SetImageProfile(image,"iptc",profile);
+      else
+        status=SetImageProfile(image,"8BIM",profile);
       profile=DestroyStringInfo(profile);
       if (status == MagickFalse)
         ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",