<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I have about 40,000 images and have gone through about 5000 of
      them to tag them with names.  In 51 of the albums the tags are
      saved as IPTC keywords.  however in one album the tags are saved
      as XMP and the IPTC keywords are messed up.</p>
    <p>Below are 2 examples (I have *** out part of the last names). 
      All images were tagged using digikam and all were tagged in the
      past 60 days or so.  I would like all my tags to be saved as IPTC
      keywords (and of course to be saved correctly)<br>
    </p>
    <p>Example image that is ok, the IPTC keywords match the XMP tags:</p>
    <p><b><font face="monospace">peter@OFFICE ~/Pictures/Albums/15 $
          exiv2 -pi ../1/1-001.jpg <br>
          Iptc.Envelope.CharacterSet                   String      3  <br>
          Iptc.Application2.DateCreated                Date        8 
          2015-12-24<br>
          Iptc.Application2.TimeCreated                Time       11 
          18:36:18-18:36<br>
          Iptc.Application2.Keywords                   String      3 
          Tom<br>
          Iptc.Application2.Keywords                   String      6 
          H***ll<br>
          peter@OFFICE ~/Pictures/Albums/15 $ exiv2 -px ../1/1-001.jpg <br>
          Xmp.dc.Format                                XmpText    10 
          image/jpeg<br>
          Xmp.dc.subject                               XmpBag      2 
          Tom, H***ll<br>
          Xmp.acdsee.categories                        XmpText   102 
          <Categories><Category
          Assigned="1">Tom</Category><Category
          Assigned="1">H***ll</Category></Categorie ...<br>
          Xmp.digiKam.TagsList                         XmpSeq      2 
          Tom, H***ll<br>
          Xmp.MicrosoftPhoto.LastKeywordXMP            XmpBag      2 
          Tom, H***ll<br>
          Xmp.lr.hierarchicalSubject                   XmpBag      2 
          Tom, H***ll<br>
          Xmp.mediapro.CatalogSets                     XmpBag      2 
          Tom, H***ll</font></b><br>
    </p>
    <p>Example image that is not ok, the IPTC keywords are duplicated
      (JoAnne, JoAnne, JoAnne) matching the count of XMP tags:</p>
    <p><font color="#ff0000"><b><font face="monospace">peter@OFFICE
            ~/Pictures/Albums/15 $ exiv2 -pi 011a.jpg <br>
            Warning: Unsupported date format<br>
            Warning: Unsupported time format<br>
            Iptc.Envelope.CharacterSet                   String      3 
            <br>
            Iptc.Application2.DateCreated                String     10 
            2021-02-03<br>
            Iptc.Application2.Keywords                   String      6 
            JoAnne<br>
            Iptc.Application2.Keywords                   String      6 
            JoAnne<br>
            Iptc.Application2.Keywords                   String      6 
            JoAnne<br>
            Iptc.Application2.TimeCreated                String     14 
            17:24:45-17:24<br>
            peter@OFFICE ~/Pictures/Albums/15 $ exiv2 -px 011a.jpg <br>
            Warning: Unsupported date format<br>
            Warning: Unsupported time format<br>
            Xmp.xmpMM.DocumentID                         XmpText    52 
            gimp:docid:gimp:d4c766da-62d9-4052-aa23-f3ad211621c6<br>
            Xmp.xmpMM.InstanceID                         XmpText    44 
            xmp.iid:3ebce656-e87d-4dc6-89c7-47144cfc957a<br>
            Xmp.xmpMM.OriginalDocumentID                 XmpText    44 
            xmp.did:96e95404-860c-41ef-89f6-d704972cc891<br>
            Xmp.xmpMM.History                            XmpText     0 
            type="Seq"<br>
            Xmp.xmpMM.History[1]                         XmpText     0 
            type="Struct"<br>
            Xmp.xmpMM.History[1]/stEvt:action            XmpText     5 
            saved<br>
            Xmp.xmpMM.History[1]/stEvt:changed           XmpText     1 
            /<br>
            Xmp.xmpMM.History[1]/stEvt:instanceID        XmpText    44 
            xmp.iid:5ea4ac53-973f-4cf8-a8dd-64148baa9871<br>
            Xmp.xmpMM.History[1]/stEvt:softwareAgent     XmpText    17 
            Gimp 2.10 (Linux)<br>
            Xmp.xmpMM.History[1]/stEvt:when              XmpText     6 
            -08:00<br>
            Xmp.xmpMM.History[2]                         XmpText     0 
            type="Struct"<br>
            Xmp.xmpMM.History[2]/stEvt:action            XmpText     5 
            saved<br>
            Xmp.xmpMM.History[2]/stEvt:changed           XmpText     1 
            /<br>
            Xmp.xmpMM.History[2]/stEvt:instanceID        XmpText    44 
            xmp.iid:1243238e-7305-4bd8-b3cf-8532d390fb79<br>
            Xmp.xmpMM.History[2]/stEvt:softwareAgent     XmpText    17 
            Gimp 2.10 (Linux)<br>
            Xmp.xmpMM.History[2]/stEvt:when              XmpText     6 
            -08:00<br>
            Xmp.GIMP.API                                 XmpText     3 
            2.0<br>
            Xmp.GIMP.Platform                            XmpText     5 
            Linux<br>
            Xmp.GIMP.TimeStamp                           XmpText    16 
            1612401887742604<br>
            Xmp.GIMP.Version                             XmpText     7 
            2.10.18<br>
            Xmp.acdsee.categories                        XmpText   145 
            <Categories><Category
            Assigned="1">JoAnne</Category><Category
            Assigned="1">Connie</Category><Categor ...<br>
            Xmp.dc.Format                                XmpText    10 
            image/jpeg<br>
            Xmp.dc.subject                               XmpBag      1 
            JoAnne, Connie, H***ll<br>
            Xmp.xmp.CreatorTool                          XmpText     9 
            GIMP 2.10<br>
            Xmp.iptcExt.LocationCreated                  XmpBag      0 
            <br>
            Xmp.iptcExt.LocationShown                    XmpBag      0 
            <br>
            Xmp.iptcExt.ArtworkOrObject                  XmpBag      0 
            <br>
            Xmp.iptcExt.RegistryId                       XmpBag      0 
            <br>
            Xmp.plus.ImageSupplier                       XmpSeq      0 
            <br>
            Xmp.plus.ImageCreator                        XmpSeq      0 
            <br>
            Xmp.plus.CopyrightOwner                      XmpSeq      0 
            <br>
            Xmp.plus.Licensor                            XmpSeq      0 
            <br>
            Xmp.MicrosoftPhoto.LastKeywordXMP            XmpBag      1 
            JoAnne, Connie, H***ll<br>
            Xmp.digiKam.TagsList                         XmpSeq      1 
            JoAnne, Connie, H***ll<br>
            Xmp.lr.hierarchicalSubject                   XmpBag      1 
            JoAnne, Connie, H***ll<br>
            Xmp.mediapro.CatalogSets                     XmpBag      1 
            JoAnne, Connie, H***ll</font></b></font><br>
    </p>
    <p><br>
    </p>
  </body>
</html>