From 5bdcdb925cc22d44c2502b6a00505bf99e2eed22 Mon Sep 17 00:00:00 2001 From: dirk Date: Sun, 27 Apr 2014 04:07:50 +0000 Subject: [PATCH] The 8bim profile will be updated when the xmp profile is changed. --- MagickCore/profile.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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, -- 2.40.0