]> granicus.if.org Git - imagemagick/commitdiff
The 8bim profile will be updated when the xmp profile is changed.
authordirk <dirk@git.imagemagick.org>
Sun, 27 Apr 2014 04:07:50 +0000 (04:07 +0000)
committerdirk <dirk@git.imagemagick.org>
Sun, 27 Apr 2014 04:07:50 +0000 (04:07 +0000)
MagickCore/profile.c

index 8dd0c9acc116671f2c5b9b1a210747c7e04ec1c2..b1cbf2ec3cbc3a4df136c5c3f5fb09ab23875e10 100644 (file)
@@ -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,