https://bugs.kde.org/show_bug.cgi?id=514061

            Bug ID: 514061
           Summary: Metadata lost on face tag change
    Classification: Applications
           Product: digikam
      Version First 8.8.0
       Reported In:
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: grave
          Priority: NOR
         Component: Metadata-Xmp
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
Existing tags (wrongfully) used by DigiKam as face tag are lost if the region
is modified or removed.

STEPS TO REPRODUCE
1. Import files with tag [Sent To/Person/John Doe] and face tag [John Doe] from
WLPG (actually DigiKam should assign the face tag to [Sent To/Person/John Doe]
instead of creating a [People/John Doe] tag)
2. In DigiKam, open the picture in Preview Mode
3. Modify the face tag to instead use [People/John Doe]

OBSERVED RESULT
The tag [Sent To/Person/John Doe] previous present in
  - [EXIF::Windows Keywords]
  - [XMP::Subject]
  - [XMP::Last Keyword XMP]
is replaced with
  - [EXIF::Windows Keywords=John Doe]
  - [IPTC::Keywords=John Doe]
  - [XMP::Categories=<Categories><Category Assigned="0">People<Category
Assignes="1">John Doe</Category></Category></Categories>] (which doesn't seem
to be editable from Item/Edit Metadata...)
  - [XPM::Hierarchical Subject=People|John Doe],
  - [XMP::Tags List=People/John Doe]
  - [XMP::Subject=John Doe]
  - [XMP::Catalog Sets=People|John Doe]
  - [XMP::Last Keyword XMP=People/John Doe]

EXPECTED RESULT
  - Initial people tags discovery should always create People/Name OR ask for a
default to use OR ask for each
  - Hierarchy shouldn't be lost in [EXIF::Windows Keywords], [XMP::Subject] and
[XMP::Last Keyword XMP] (and probably anywhere)
  - Region names should not be also considered as standard tags unless
explicitely defined as such
  - A non region tag should never be removed because a region tag is modified

SOFTWARE/OS VERSIONS
digiKam: 8.8.0
KDE Frameworks: 6.17.0
Qt: Using 6.9.1 and built against 6.9.1
Windows 11 Version 25H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.26200

ADDITIONAL INFORMATION
- Obviously, the tags hierarchy doesn't have to be precisely this and is used
as an example.
- In advanced search, there should be a way to search explicitly in specific
EXIF, IPTC, XMP fields. In my specific use case, this would allow me to
differentiate between (non broken) files which were really assigned to [Send
to/<person>] and those for which it was wrongfully mapped to a face tag.
- In my current position, the only way I can think of to fix this is to open
one by one over 10k pictures and
  1. look at the metadata to see if the tag is really present
  2. if it is, assign a new tag with a different name
  3. if a face tag with the same name is also present, retag it to the righ one
in People
  4. Pray I don't do any error and that I didn't break too many already
(for personal reference: IMG_0610)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to