Bug 479780 - Face tags not writing to XMP on photos taken with Android "Ultra HDR" setting
Summary: Face tags not writing to XMP on photos taken with Android "Ultra HDR" setting
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 01:23 UTC by ymneoe146
Modified: 2024-01-14 15:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments
Screenshots of normal/working XMP tags and non-working/Ultra HDR tags (62.42 KB, application/zip)
2024-01-14 01:23 UTC, ymneoe146
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ymneoe146 2024-01-14 01:23:49 UTC
Created attachment 164890 [details]
Screenshots of normal/working XMP tags and non-working/Ultra HDR tags

STEPS TO REPRODUCE
1. Take a photo with Android (14+) camera with "Ultra HDR" enabled (I used Pixel 6a). The "Ultra HDR" setting is found in the camera advanced settings (https://piunikaweb.com/2023/12/08/how-to-enable-or-disable-ultra-hdr-in-the-pixel-camera-app/)
2. Make sure Digikam is configured to write face tags metadata (under Settings > Behavior)
2. Import the photo into Digikam and scan for faces (or manually add a face)
3. Specify a person's name to trigger Digikam to write metadata.

OBSERVED RESULT
No face metadata is found in the XMP section. Neither Microsoft Photo or Metadata Working Groups Regions tags are present. The only thing it writes is person's name as a "keyword" under IPTC

EXPECTED RESULT
Both Microsoft Photo and Metadata Working Groups Regions should be present.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
When inspecting XMP tags for "Ultra HDR" images, various "Container" tags are present. These seem to be documented at https://developer.android.com/media/platform/hdr-image-format#GContainer_details 
I suspect somehow they're preventing Digikam from writing face data to XMP.
This issue is preventing other applications that rely on XMP from reading face tags
Comment 1 Maik Qualmann 2024-01-14 07:11:33 UTC
Fixed in digiKam-8.3.0 with Bug 478899.
Please upload another sample image of a Pixel 6a for confirmation. In Bug 478899 it was a Pixel 7.

Maik
Comment 2 ymneoe146 2024-01-14 15:06:33 UTC
Thank you, I installed the latest pre-release digiKam-8.3.0-20240113T081359-Win64.exe and can confirm the issue is resolved.