Bug 481268 - Digikam fails (silently) to write any XMP metadatas to file if the file contains a "XMP GCamera.HdrPlusMakernote" (from Pixel5 camera)
Summary: Digikam fails (silently) to write any XMP metadatas to file if the file conta...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 8.2.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-12 14:28 UTC by mahikeulbody
Modified: 2024-02-12 18:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0


Attachments
digikam log file (50.31 KB, text/x-log)
2024-02-12 14:28 UTC, mahikeulbody
Details
picture from pixel 5 with xmp hdr tag (2.58 MB, image/jpeg)
2024-02-12 17:54 UTC, mahikeulbody
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mahikeulbody 2024-02-12 14:28:51 UTC
Created attachment 165780 [details]
digikam log file

SUMMARY
Digikam fails to write any XMP metadatas to file if the file contains a "[XMP-GCamera]   Hdr Plus Makernote" tag (from Pixel5 camera).

NB. May be that explain some non-reproducible behavior I had into some of my last reports since this tag is only present if the picture has been taken in HDR mode.

Exiftool -xmp:all -G1 of such picture displays:

[XMP-x]         XMP Toolkit                     : Image::ExifTool 12.56
[XMP-Container] Directory Item Mime             : image/jpeg
[XMP-Container] Directory Item Semantic         : Primary
[XMP-Container] Directory Item Length           : 47601
[XMP-hdrgm]     Version                         : 1.0
[XMP-GCamera]   Hdr Plus Makernote              : SERSUAPvZDVtXnAeLOrjTFc6b6B6wjSJaN4CN/jukAi/FEB43YR1RuBjbBjnsSoQbU9IaVSYwWdUFjSNf/4pb6KcLnQT5uWUMKBJslq/CztBrXLulGmElv2OHfeC0G1y1P8pXjtvM6KLozBiyKHX/
<***** and a very long string *****>

See attached the digikam log file displaying what append when I try to add a Title to the picture (via the Caption side panel). In short, we have this log message :

digikam.metaengine: Exiv2 ( 3 ) :  XMP Toolkit error 102: Unknown namespace prefix for qualified name
digikam.metaengine: Exiv2 ( 3 ) :  Failed to encode XMP metadata.

I don't know if that can/should be fixed but anyway there is no error/warning shown to the user.

NB. Exiftool shows this metadata but I have not been successful to remove it, I had to remove all XMP at once (-xmp:all=). May be I can report that to Phil.
Comment 1 mahikeulbody 2024-02-12 14:30:47 UTC
https://exiftool.org/TagNames/XMP.html#GCamera
Comment 2 mahikeulbody 2024-02-12 14:34:19 UTC
> digikam.metaengine: Exiv2 ( 3 ) :  Failed to encode XMP metadata.

I have 'Delegate to Exiftool backend ...' set.
Comment 3 mahikeulbody 2024-02-12 15:23:42 UTC
Exiftool is able to add a XMP tag (Title, for exemple) to this kind of file.

exiftool -xmp:title="test" image.jpg

and then Digikam is able to display the Title.

So it should work for Digikam.
Comment 4 Maik Qualmann 2024-02-12 15:23:54 UTC
The problem is fixed in digiKam-8.3.0. Even if you set ExifTool, an EXV container that uses ExifTool will be created by Exiv2.

Maik
Comment 5 Maik Qualmann 2024-02-12 15:26:35 UTC
See Bug 478899 or Bug 479949

Maik
Comment 6 Maik Qualmann 2024-02-12 17:48:05 UTC
We need the corresponding image here because the XMP Toolkit error message is different.

Maik
Comment 7 mahikeulbody 2024-02-12 17:54:53 UTC
Created attachment 165783 [details]
picture from pixel 5 with xmp hdr tag
Comment 8 Maik Qualmann 2024-02-12 18:13:01 UTC
Thanks for the sample image, no error message in digiKam-8.3.0 and XMP metadata is written.
Comment 9 mahikeulbody 2024-02-12 18:15:15 UTC
(In reply to Maik Qualmann from comment #8)
> Thanks for the sample image, no error message in digiKam-8.3.0 and XMP metadata is written.

Fine.