Digikam Face Tags not being imported #1727

Closed
opened 2026-02-20 00:20:08 -05:00 by deekerman · 2 comments
Owner

Originally created by @alandefreitas on GitHub (Mar 9, 2023).

1. What is not working as documented?

If I understood https://github.com/photoprism/photoprism/issues/747 correctly, Photoprism should already be able to import faces from xmp sidecar files generated by digikam.

2. How can we reproduce it?

Steps to reproduce the behavior:

  1. Tag people on Digikam
  2. Export metadata to sidecar files
  3. Import into Photoprism
  4. Faces not found. Not all face tags are found either.

My library has pictures in all kinds of formats.

Here's an example of a sidecar file whose face is not indexed:

<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about=""
    xmlns:digiKam="http://www.digikam.org/ns/1.0/"
    xmlns:exif="http://ns.adobe.com/exif/1.0/"
    xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
    xmlns:xmp="http://ns.adobe.com/xap/1.0/"
    xmlns:MicrosoftPhoto="http://ns.microsoft.com/photo/1.0/"
    xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
    xmlns:mediapro="http://ns.iview-multimedia.com/mediapro/1.0/"
    xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
    xmlns:mwg-rs="http://www.metadataworkinggroup.com/schemas/regions/"
    xmlns:stDim="http://ns.adobe.com/xap/1.0/sType/Dimensions#"
    xmlns:stArea="http://ns.adobe.com/xmp/sType/Area#"
    xmlns:MP="http://ns.microsoft.com/photo/1.2/"
    xmlns:MPRI="http://ns.microsoft.com/photo/1.2/t/RegionInfo#"
    xmlns:MPReg="http://ns.microsoft.com/photo/1.2/t/Region#"
    xmlns:acdsee="http://ns.acdsee.com/iptc/1.0/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
   digiKam:PickLabel="0"
   digiKam:ColorLabel="0"
   exif:DateTimeOriginal="2023-03-08T01:08:42"
   exif:ExifVersion="0221"
   exif:FlashpixVersion="0100"
   exif:ColorSpace="65535"
   exif:PixelXDimension="4032"
   exif:PixelYDimension="3024"
   exif:SceneCaptureType="0"
   tiff:DateTime="2023-03-08T01:08:42"
   tiff:Orientation="6"
   tiff:YCbCrPositioning="1"
   tiff:XResolution="72/1"
   tiff:YResolution="72/1"
   tiff:ResolutionUnit="2"
   xmp:MetadataDate="2023-03-08T01:08:42"
   xmp:CreateDate="2023-03-08T01:08:42"
   xmp:ModifyDate="2023-03-08T01:08:42"
   photoshop:DateCreated="2023-03-08T01:08:42"
   photoshop:Urgency="0"
   acdsee:categories="&lt;Categories&gt;&lt;Category Assigned=&quot;0&quot;&gt;People&lt;Category Assigned=&quot;1&quot;&gt;Hana&lt;/Category&gt;&lt;/Category&gt;&lt;/Categories&gt;">
   <digiKam:TagsList>
    <rdf:Seq>
     <rdf:li>People/Hana</rdf:li>
    </rdf:Seq>
   </digiKam:TagsList>
   <exif:ComponentsConfiguration>
    <rdf:Seq>
     <rdf:li>1</rdf:li>
     <rdf:li>2</rdf:li>
     <rdf:li>3</rdf:li>
     <rdf:li>0</rdf:li>
    </rdf:Seq>
   </exif:ComponentsConfiguration>
   <MicrosoftPhoto:LastKeywordXMP>
    <rdf:Bag>
     <rdf:li>People/Hana</rdf:li>
    </rdf:Bag>
   </MicrosoftPhoto:LastKeywordXMP>
   <lr:hierarchicalSubject>
    <rdf:Bag>
     <rdf:li>People|Hana</rdf:li>
    </rdf:Bag>
   </lr:hierarchicalSubject>
   <mediapro:CatalogSets>
    <rdf:Bag>
     <rdf:li>People|Hana</rdf:li>
    </rdf:Bag>
   </mediapro:CatalogSets>
   <mwg-rs:Regions rdf:parseType="Resource">
    <mwg-rs:AppliedToDimensions
     stDim:w="4032"
     stDim:h="3024"
     stDim:unit="pixel"/>
    <mwg-rs:RegionList>
     <rdf:Bag>
      <rdf:li>
       <rdf:Description
        mwg-rs:Name="Hana"
        mwg-rs:Type="Face">
       <mwg-rs:Area
        stArea:x="0.554936"
        stArea:y="0.471065"
        stArea:w="0.270089"
        stArea:h="0.257606"
        stArea:unit="normalized"/>
       </rdf:Description>
      </rdf:li>
     </rdf:Bag>
    </mwg-rs:RegionList>
   </mwg-rs:Regions>
   <MP:RegionInfo rdf:parseType="Resource">
    <MPRI:Regions>
     <rdf:Bag>
      <rdf:li
       MPReg:PersonDisplayName="Hana"
       MPReg:Rectangle="0.419891, 0.342262, 0.270089, 0.257606"/>
     </rdf:Bag>
    </MPRI:Regions>
   </MP:RegionInfo>
   <dc:subject>
    <rdf:Bag>
     <rdf:li>Hana</rdf:li>
    </rdf:Bag>
   </dc:subject>
  </rdf:Description>
 </rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>

3. What behavior do you expect?

I would expect all faces in the "people" tab with their names and/or at least the names to be searchable.

No face is in people and many are not in tags (this might be related to digikam's hierarchical tags though).

4. What could be the cause of your problem?

Photoprism might be expecting a slightly different format to be parsed.

5. Can you provide us with example files for testing, error logs, or screenshots?

Included in section 2.

6. Which software versions do you use?

(a) PhotoPrism Architecture & Build Number: x64 - 230309-e58fee0fb

(b) Database Type & Version: SQLite

(c) Operating System Types & Versions: Linux

(d) Browser Types & Versions: Brave

(e) Ad Blockers, Browser Plugins, and/or Firewall Software? No

7. On what kind of device is PhotoPrism installed?

Not a performance issue

8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?

No

Originally created by @alandefreitas on GitHub (Mar 9, 2023). #### 1. What is not working as documented? If I understood https://github.com/photoprism/photoprism/issues/747 correctly, Photoprism should already be able to import faces from xmp sidecar files generated by digikam. #### 2. How can we reproduce it? Steps to reproduce the behavior: 1. Tag people on Digikam 2. Export metadata to sidecar files 3. Import into Photoprism 4. Faces not found. Not all face tags are found either. My library has pictures in all kinds of formats. Here's an example of a sidecar file whose face is not indexed: ```xml <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:digiKam="http://www.digikam.org/ns/1.0/" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:MicrosoftPhoto="http://ns.microsoft.com/photo/1.0/" xmlns:lr="http://ns.adobe.com/lightroom/1.0/" xmlns:mediapro="http://ns.iview-multimedia.com/mediapro/1.0/" xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/" xmlns:mwg-rs="http://www.metadataworkinggroup.com/schemas/regions/" xmlns:stDim="http://ns.adobe.com/xap/1.0/sType/Dimensions#" xmlns:stArea="http://ns.adobe.com/xmp/sType/Area#" xmlns:MP="http://ns.microsoft.com/photo/1.2/" xmlns:MPRI="http://ns.microsoft.com/photo/1.2/t/RegionInfo#" xmlns:MPReg="http://ns.microsoft.com/photo/1.2/t/Region#" xmlns:acdsee="http://ns.acdsee.com/iptc/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" digiKam:PickLabel="0" digiKam:ColorLabel="0" exif:DateTimeOriginal="2023-03-08T01:08:42" exif:ExifVersion="0221" exif:FlashpixVersion="0100" exif:ColorSpace="65535" exif:PixelXDimension="4032" exif:PixelYDimension="3024" exif:SceneCaptureType="0" tiff:DateTime="2023-03-08T01:08:42" tiff:Orientation="6" tiff:YCbCrPositioning="1" tiff:XResolution="72/1" tiff:YResolution="72/1" tiff:ResolutionUnit="2" xmp:MetadataDate="2023-03-08T01:08:42" xmp:CreateDate="2023-03-08T01:08:42" xmp:ModifyDate="2023-03-08T01:08:42" photoshop:DateCreated="2023-03-08T01:08:42" photoshop:Urgency="0" acdsee:categories="&lt;Categories&gt;&lt;Category Assigned=&quot;0&quot;&gt;People&lt;Category Assigned=&quot;1&quot;&gt;Hana&lt;/Category&gt;&lt;/Category&gt;&lt;/Categories&gt;"> <digiKam:TagsList> <rdf:Seq> <rdf:li>People/Hana</rdf:li> </rdf:Seq> </digiKam:TagsList> <exif:ComponentsConfiguration> <rdf:Seq> <rdf:li>1</rdf:li> <rdf:li>2</rdf:li> <rdf:li>3</rdf:li> <rdf:li>0</rdf:li> </rdf:Seq> </exif:ComponentsConfiguration> <MicrosoftPhoto:LastKeywordXMP> <rdf:Bag> <rdf:li>People/Hana</rdf:li> </rdf:Bag> </MicrosoftPhoto:LastKeywordXMP> <lr:hierarchicalSubject> <rdf:Bag> <rdf:li>People|Hana</rdf:li> </rdf:Bag> </lr:hierarchicalSubject> <mediapro:CatalogSets> <rdf:Bag> <rdf:li>People|Hana</rdf:li> </rdf:Bag> </mediapro:CatalogSets> <mwg-rs:Regions rdf:parseType="Resource"> <mwg-rs:AppliedToDimensions stDim:w="4032" stDim:h="3024" stDim:unit="pixel"/> <mwg-rs:RegionList> <rdf:Bag> <rdf:li> <rdf:Description mwg-rs:Name="Hana" mwg-rs:Type="Face"> <mwg-rs:Area stArea:x="0.554936" stArea:y="0.471065" stArea:w="0.270089" stArea:h="0.257606" stArea:unit="normalized"/> </rdf:Description> </rdf:li> </rdf:Bag> </mwg-rs:RegionList> </mwg-rs:Regions> <MP:RegionInfo rdf:parseType="Resource"> <MPRI:Regions> <rdf:Bag> <rdf:li MPReg:PersonDisplayName="Hana" MPReg:Rectangle="0.419891, 0.342262, 0.270089, 0.257606"/> </rdf:Bag> </MPRI:Regions> </MP:RegionInfo> <dc:subject> <rdf:Bag> <rdf:li>Hana</rdf:li> </rdf:Bag> </dc:subject> </rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="w"?> ``` #### 3. What behavior do you expect? I would expect all faces in the "people" tab with their names and/or at least the names to be searchable. No face is in people and many are not in tags (this might be related to digikam's hierarchical tags though). #### 4. What could be the cause of your problem? Photoprism might be expecting a slightly different format to be parsed. #### 5. Can you provide us with example files for testing, error logs, or screenshots? Included in section 2. #### 6. Which software versions do you use? (a) PhotoPrism Architecture & Build Number: x64 - [230309-e58fee0fb](https://docs.photoprism.app/release-notes/) (b) Database Type & Version: SQLite (c) Operating System Types & Versions: Linux (d) Browser Types & Versions: Brave (e) Ad Blockers, Browser Plugins, and/or Firewall Software? No #### 7. On what kind of device is PhotoPrism installed? Not a performance issue #### 8. Do you use a Reverse Proxy, Firewall, VPN, or CDN? No
Author
Owner

@graciousgrey commented on GitHub (Mar 9, 2023):

If an issue is still open as #747 it means it is not implemented yet.

@graciousgrey commented on GitHub (Mar 9, 2023): If an issue is still open as #747 it means it is not implemented yet.
Author
Owner

@alandefreitas commented on GitHub (Mar 9, 2023):

Makes sense :)

I misunderstood the discussion.

@alandefreitas commented on GitHub (Mar 9, 2023): Makes sense :) I misunderstood the discussion.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/photoprism#1727
No description provided.