Bug 273565

Summary: Digikam doesn't read EXIF if XMP sidecar file exists
Product: [Applications] digikam Reporter: Sergey Salnikov <salsergey>
Component: Metadata-SidecarAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 2.6.0
Sentry Crash Report:

Description Sergey Salnikov 2011-05-18 14:58:44 UTC
Version:           2.0.0 (using KDE 4.6.2) 
OS:                Linux

Hello.

I have turned on reading metadata from XMP files and writing XMP sidecar files.
It seems that in this case Digikam reads EXIF from the image only if there is no XPM sidecar file. As soon as such file corresponding to the image is created Digikam prefers to read metadata from it and doesn't read EXIF from original image. At least there is almost no EXIF information in the sidebar. When I delete XMP file or turn off reading metadata from XMP files all EXIF is shown again.

I apologize if this behaviour is already known.

Reproducible: Always

Steps to Reproduce:
Turn on reading metadata from XMP sidecar file and create corresponding file.



OS: Linux (i686) release 2.6.37.6-0.5-default
Compiler: gcc
Comment 1 Sergey Salnikov 2011-06-09 07:41:10 UTC
Excuse me. Has anybody read my message?
Comment 2 Sergey Salnikov 2011-06-10 09:44:43 UTC
Is anybody here?
Comment 3 caulier.gilles 2011-06-10 10:17:31 UTC
yes, we are here, but there are a lots of report to read. Please be patient...

Q: run digiKam in a console, with digiKam/Kexiv2 debug space enable using kdebugdialog, and look all trace if any information are relevant of this problem.

Also, metadata are managed in background by Exiv2. Can your reproduce the problem with Exiv2 command line tool ?

Gilles Caulier
Comment 4 Sergey Salnikov 2011-06-11 04:40:29 UTC
I'm sorry, but I have reported this bug almost a month ago and I didn't know if anybody has noticed it.

I don't think that there can be some problems with command line tool. All metadata is available in the images because it is shown if I turn off reading metadata from XMP files.

It seems that digiKam prefer to read metadata from XMP files and there is no EXIF information but only XMP tags. And for some reason digiKam doesn't read EXIF from the image if XMP file exists.

I'll try to run digiKam in debug mode later and see if there is some interesting information.
Comment 5 Sergey Salnikov 2011-06-12 07:13:04 UTC
I have launched digiKam in debug mode. I compared the output when "Reread Metadata From Image" button is pressed for two images: with and without XMP sidecar file. It seems that there is no important information, however, I can provide it if you want.

I noticed another interesting fact. The same EXIF data is shown in Properties sidebar for both images, but there is huge difference in Metadata sidebar. All EXIF and Makernote information is shown for the image without XMP sidecar file. However, there are only three lines in EXIF tab and no line in Makernote tab for the image with XMP sidecar file. Note, that all information is shown again after I turn off "Read metadata from XMP sidecar files".

Probably, all metadata is read properly, but it is not shown in Metadata sidebar for the images with XMP sidecar files.
Comment 6 Marcel Wiesweg 2012-03-15 21:11:48 UTC
Should be fixed with the sidecar fixes applied for coming 2.6. Feel free to reopen if there are still issues with current git (of digikam and libkexiv2)