From: cristy Date: Sun, 26 Sep 2010 14:12:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8806 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7a5bc2ccd0006a50390f5be42cf99bb238c85a6;p=imagemagick --- diff --git a/coders/jpeg.c b/coders/jpeg.c index 674420f30..9b1bac46a 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -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",