Bug 228021

Summary: digiKam not writing metadata in XMP
Product: [Applications] digikam Reporter: Fest <fest.in>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Unspecified   
Latest Commit: Version Fixed In: 7.3.0
Sentry Crash Report:

Description Fest 2010-02-22 11:27:57 UTC
Version:            (using KDE 4.4.0)
Installed from:    Gentoo Packages

I'm trying to write XMP metadata to images, but it remains empty.

Configuration:
Gentoo, KDE 4.4, Digikam 1.2.0,kipi-plugins-1.1.0, libkexiv2-4.4.

Images:
Various, mostly jpeg and png.

Settings enabled:
-write image tags as keyword in metadata.
-save image caption in metadata
-save image rating in metadata
-store metadata in nepomuk
-read metadata from nepomuk

Steps:
1)Write via menu. Image -> Metadata  -> Edit XMP. 
Remains empty.

2)Write via menu. Image -> Metadata  -> Edit Captions. 
ONLY Sync XMP enabled. XMP empty, captions somehow written to IPTC !?

3)Add tag to image. 
Tag written to IPTC. Since IPTC don't understand unicode, i get such tags - ?????.

Editing EXIF and IPTC works, only XMP not responding.
Comment 1 caulier.gilles 2010-02-22 11:30:54 UTC
Update libexiv2 to >= 0.16

Update libkexiv2 to >= 1.0.0

digiKam and kipi-plugins need to be updated of course. 

Look in Help/ components Info for details

Gilles Caulier
Comment 2 Fest 2010-02-22 11:57:28 UTC
Everything in most recent versions.

digiKam version 1.2.0
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: No
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibExiv2: 0.19
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.4.00 (KDE 4.4.0)
LibKExiv2: 1.0.0
LibKdcraw: 1.0.0
LibLCMS: 119
LibPGF: 6.09.44
LibPNG: 1.2.42
LibQt: 4.6.2
LibRaw: 0.8.5
LibTIFF: LIBTIFF, Version 3.9.2 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble widget: 0.9
Parallelized demosaicing: Yes
LibGphoto2: 2.4.8
LibKipi: 1.0.0
Comment 3 Fest 2010-08-13 00:41:56 UTC
After half of year of waiting, i still unable to write XMP metadata.

digiKam version 1.3.0
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibExiv2: 0.20
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.5.00 (KDE 4.5.0)
LibKExiv2: 1.1.0
LibKdcraw: 1.1.0
LibLCMS: 119
LibPGF: 6.09.44
LibPNG: 1.4.3
LibQt: 4.6.3
LibRaw: 0.10.0-Beta1
LibTIFF: LIBTIFF, Version 4.0.0beta6 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble widget: 0.10.0 SVN
Parallelized demosaicing: Yes
Database backend: QSQLITE
LibGphoto2: 2.4.9
LibKipi: 1.1.0
Comment 4 Fest 2010-08-13 01:01:06 UTC
I found the problem. libexiv2 was compiled without xmp support. But why the heck, digikam was writing "Exiv2 supports XMP metadata: Yes" ???

After recompiling with xmp support, everything working.
Comment 5 caulier.gilles 2021-04-07 18:33:41 UTC
Just checked : if XMP support is disable in Exiv2 0.27.3, digiKam 7.3.0 show XMP support OFF in Help/Component Info dialog.