From: dirk Date: Sun, 27 Apr 2014 04:07:50 +0000 (+0000) Subject: The 8bim profile will be updated when the xmp profile is changed. X-Git-Tag: 7.0.1-0~2407 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bdcdb925cc22d44c2502b6a00505bf99e2eed22;p=imagemagick The 8bim profile will be updated when the xmp profile is changed. --- diff --git a/MagickCore/profile.c b/MagickCore/profile.c index 8dd0c9acc..b1cbf2ec3 100644 --- a/MagickCore/profile.c +++ b/MagickCore/profile.c @@ -1186,9 +1186,14 @@ static void WriteTo8BimProfile(Image *image,const char *name, value; unsigned short - id; + id, + profile_id; - if (LocaleCompare(name,"iptc") != 0) + if (LocaleCompare(name,"iptc") == 0) + profile_id=0x0404; + else if (LocaleCompare(name,"xmp") == 0) + profile_id=0x0424; + else return; profile=(StringInfo *)GetValueFromSplayTree((SplayTreeInfo *)image->profiles, "8bim"); @@ -1215,7 +1220,7 @@ static void WriteTo8BimProfile(Image *image,const char *name, break; if ((count & 0x01) != 0) count++; - if (id == 0x0404) + if (id == profile_id) { size_t offset,