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

            Bug ID: 472914
           Summary: Face tag subfolders get converted to backslash instead
                    of forward slash when metadata reread
    Classification: Applications
           Product: digikam
           Version: 8.1.0
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Metadata-Xmp
          Assignee: digikam-bugs-n...@kde.org
          Reporter: deryk.lis...@marl.co.uk
  Target Milestone: ---

SUMMARY
Say your tag structure for faces has subfolders, which appear correctly in the
tag hierarchy in the tags tab e.g.:
People/Famous/King Charles
People/Staff/Fred Smith
People/Staff/Joe Bloggs
If face tagging is used, when metadata is written to the file and re-read again
duplicate tags are created so your tag list becomes:
People/Famous/King Charles
People/Famous\King  Charles
People/Staff/Fred Smith
People/Staff\Fred Smith
People/Staff/Joe Bloggs
People/Staff\Joe Bloggs
The backslash version of the tag is applied to the face region and both tags
are applied to the image metadata.

STEPS TO REPRODUCE
1. Use face tagging on a region of a photo and where it says "Who is this?" put
in Famous/King Charles  (doesn't need the "People/" prefix as face tags all go
under "People" by default) 
2. If the person tag doesn't exist yet, click on "Create "Famous/King Charles"
in People" to create it
3. Check the image tags (an easy way is right click - hover over "Remove tag"),
there should only be one, for "People / Famous / King Charles"
4. Item menu - write metadata to file
5. Item menu - reread metadata from file
6. Check the image tags again

OBSERVED RESULT
There are now two image tags listed when checking (step 3) - "People / Famous /
King Charles" and "People / Famous\King Charles"  (if using the "Remove tag"
menu to check, the latter is displayed indented as "   Famous\King Charles"). 
In the Tags tab, you can see that as well as a hierarchy of People|Famous|King
Charles there is also a duplicate People|Famous\King Charles (displayed in the
UI with the backslash).  The face tagging on the image will use the latter.

EXPECTED RESULT
No change after rereading metadata from file - there should only be
People|Famous|King Charles in the tags hierarchy, and not a People|Famous\King
Charles.

SOFTWARE/OS VERSIONS
Windows: Windows 11 22H2

ADDITIONAL INFORMATION
I suspect this is specific to Windows, seeing as the filesystem uses
backslashes.  My guess is that there's an extra conversion happening that
shouldn't be.
This only affects face tagging - if you don't tag any regions of the image as a
face and just use normal tagging, hierarchies behave as normal.

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

Reply via email to