Bug 216273

Summary: digikam exif gps not in xmp
Product: [Applications] digikam Reporter: Philippe ROUBACH <philippe.roubach>
Component: Metadata-GpsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: caulier.gilles, languitar, marcel.wiesweg
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 1.4.0
Sentry Crash Report:
Attachments: test image
digiKAm 1.3.0 under Mandriva 2010.1. GPS info are in XMP tags

Description Philippe ROUBACH 2009-11-26 16:18:54 UTC
Version:           1.0.0-beta6 (using 4.3.75 (KDE 4.3.75 (KDE 4.4 >= 20091113)), Mandriva Linux release 2010.1 (Cooker) for i586)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.6-desktop-1mnb

i have a photo with gps coordinate

gps coordinates are well displayed in exif viewer
then
i select in xmp viewer to display gps coordinates
then
in exif specific properties for all gps item i have "unavailable"
Comment 1 Johannes Wienke 2009-11-26 16:23:56 UTC
Did you configure digikam to store metadata in the images?
Comment 2 Philippe ROUBACH 2009-11-26 17:42:59 UTC
yes with the assistant
and i also tested "write metadata in image" and "reread..."
Comment 3 Philippe ROUBACH 2009-11-26 20:32:10 UTC
addendum

this photo had already geotag

i did not use digikam to geotag this photo
Comment 4 caulier.gilles 2009-11-26 22:27:57 UTC
Which libkexiv2 and Exiv2 version you use. Go to Help/Components info for details...

Gilles
Comment 5 Philippe ROUBACH 2009-11-26 22:51:01 UTC
digiKam version 1.0.0-beta6
Exiv2 can write to Jp2: Oui
Exiv2 can write to Jpeg: Oui
Exiv2 can write to Pgf: Non
Exiv2 can write to Png: Oui
Exiv2 can write to Tiff: Oui
Exiv2 supports XMP metadata: Oui
LibCImg: 130
LibExiv2: 0.18.2
LibJPEG: 70
LibJasper: 1.900.1
LibKDE: 4.3.75 (KDE 4.3.75 (KDE 4.4 >= 20091113))
LibKExiv2: 1.0.0
LibKdcraw: 1.0.0
LibLCMS: 118
LibPGF: 6.09.44
LibPNG: 1.2.40
LibQt: 4.6.0
LibRaw: 0.8.3
LibTIFF: LIBTIFF, Version 3.9.2 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble widget: 0.9 SVN
Parallelized demosaicing: Non
LibGphoto2: 2.4.7
LibKipi: 1.0.0
Comment 6 Philippe ROUBACH 2009-11-29 12:49:04 UTC
now i understand well the pb

import a photo with gps data
view exif then gps data are there
view xmp then gps data are not there

use geolocator to modify coordinate
view xmp then gps data are there

digikam does not synchronize gps data between exif and xmp if importing a photo with exif gps data
Comment 7 Philippe ROUBACH 2009-11-29 13:56:34 UTC
i made this experiment
i copy in my image folder a photo from digikam 0.9.6
this photo contain exif data and iptc data
in particular

EXIF data :
>>> Photograph Information <<<

exif User Comment : Hommage à Paul Riquet

>>> Global Positioning System <<<

GPS Version ID : 0.0.2.2
GPS Longitude Reference : East
GPS Longitude : 1deg 49' 35.972"
GPS Latitude Reference : North
GPS Latitude : 43deg 21' 8.244"
GPS Altitude Reference : Above sea level
GPS Altitude : 0 m

IPTC data :
File name: img023.jpg (IPTC Records)

>>> IIM Application 2 <<<

Caption : Hommage à Paul Riquet
Country Name : France
Date Created : 2003-08-01
Keywords : Géographie/Lieux/Canal du midi, Géographie/Lieux/Canal des deux mers, Voyage/A vélo, Architecture/Architecte/Paul Riquet, Histoire/Monument, Canal/Monument
Province State : Languedoc-Roussillon

open digikam
the photo is well in the album
click on it
select xmp
no data in xmp view, xmp window is empty

close digikam
open digikam
then
same thing


se the joined photo
img023.jpg

addendum : i already send a bug report about this pb about if i remember the 0.10.x digikam version. it's a pity because its a major pb for someone who want to switch to 1.0.0 digikam version if htere is no sunchronizing mechanism for imported photo from old digikam version

thanks
Comment 8 Philippe ROUBACH 2009-11-29 13:58:01 UTC
Created attachment 38677 [details]
test image
Comment 9 Philippe ROUBACH 2009-12-01 11:11:56 UTC
digikam 1.0.0rc
kipi-plugins 0.8

same pb

see my other report

http://bugs.kde.org/show_bug.cgi?id=198406
Comment 10 Philippe ROUBACH 2009-12-06 11:58:59 UTC
digikam 1.0.0rc
kipi-plugins 0.9

same pb
Comment 11 Marcel Wiesweg 2009-12-07 18:32:22 UTC
Please tell me if I understand this problem correct:

Your image has GPS information in Exif.
You copy this image into your digikam collection. You do not edit the image or GPS information in any way.
You expect GPS information to appear in XMP.
Comment 12 Philippe ROUBACH 2009-12-07 19:00:01 UTC
(In reply to comment #11)
> Please tell me if I understand this problem correct:
> 
> Your image has GPS information in Exif.
> You copy this image into your digikam collection. You do not edit the image or
> GPS information in any way.
> You expect GPS information to appear in XMP.
yes
for any imported photo
i expect all exif and iptc data to appear in xmp
as they appear for a photo when i modify it with digikam

gps is a particular pb inside this general pb
Comment 13 caulier.gilles 2010-06-07 09:44:09 UTC
Philippe, 

Using current code from svn trunk (digiKam, kipi-plugisn and libkexiv2), XMP must include GPS information now. Can you confirm this ?

Gilles Caulier
Comment 14 Philippe ROUBACH 2010-07-09 13:36:50 UTC
(In reply to comment #13)
> Philippe, 
> 
> Using current code from svn trunk (digiKam, kipi-plugisn and libkexiv2), XMP
> must include GPS information now. Can you confirm this ?
> 
> Gilles Caulier

hélas i can't confirm this

today i installed mandriva 2010.1

i open digikam 1.3
then
i select a photo with exif and iptc data
then
xmp is desesperatly empty

no caption
no country name
no province name
no city
no location name
no gps data
Comment 15 caulier.gilles 2010-07-09 20:14:25 UTC
Phillipe,

Just installed Mandriva 2010.1. Nothing is recompiled. I use all base packages (digiKam 1.3.0) => XMP is there.

Got XMP panel from right sidebar, and turn on full list of XMP tags using button on top of XMP view.

Gilles Caulier
Comment 16 caulier.gilles 2010-07-09 20:19:26 UTC
Created attachment 48731 [details]
digiKAm 1.3.0 under Mandriva 2010.1. GPS info are in XMP tags
Comment 17 Philippe ROUBACH 2010-07-09 20:40:21 UTC
"turn on full list of XMP tags using
button on top of XMP view"

yes i did this

xmp is empty

as i said

digikam does not synchronize data between exif,iptc and xmp if importing(from 0.9.6) a photo
or perhaps it is synchronized but viewer has a pb ?

if in digikam setting/xmp viewer settings i select "all"
then
in "custom list" all parameters have "unavailable" value
and
"full list" is empty
Comment 18 caulier.gilles 2010-07-09 20:59:57 UTC
Run Exiv2 command line tool from Mandriva 2010.1. Do you see XMP data with your image.

In digiKam XMP information come from Exiv2 as well...

Gilles Caulier
Comment 19 Philippe ROUBACH 2010-07-09 21:39:53 UTC
i run "exiv2 -pa 100_0323.jpg"
result : exif and iptc data and no xmp data

exiv2 V 0.19
Comment 20 Johannes Wienke 2010-07-09 22:14:25 UTC
Can you see the xmp contents with exiftool? Otherwise there simply is no xmp in the images.
Comment 21 Philippe ROUBACH 2010-07-10 12:36:52 UTC
i made an error
with exiv2 there is xmp data
with exiftool there is xmp data

but for the two ones
- some xmp-iptc data are missing

Content Location Name           : Parc mauresque
City                            : Arcachon

today i am astonished.

i open digikam and this time is see data in xmp viewer

it seems when you import a photo you must close digikam to synchronize xmp with exif and iptc ?
Comment 22 Philippe ROUBACH 2010-07-10 12:50:05 UTC
in xmp viewer there is no itpc part as exif
Comment 23 caulier.gilles 2010-07-10 12:57:33 UTC
But you can see XMP. that the goal...

Exif can be backported in XMP as well, but this depand of the software used in background. digiKam do not synchronize Exif to XMP.

IPTC do not have Exif section.

You don't need to restart digiKam to see XMP. metadata viewer read these information directly from file. But this is not the case about image properties view where digiKam use datatabase info. In digiKam database we duplicates some XMP/Exif enties, but not all (the most important in fact to process search)

For me this entry is not valid for me. Assign GPS info with digiKam, and you will see GPS data to XMP view.

Gilles Caulier
Comment 24 Johannes Wienke 2010-07-10 13:10:16 UTC
Moreover you can try to use the "Reread metadata from files" commands.
Comment 25 Johannes Wienke 2010-07-10 13:10:32 UTC
Or the write commands.
Comment 26 Philippe ROUBACH 2010-07-10 13:42:27 UTC
i made an experiment

i go to another imported (from digikam 0.9.6) album
then
no data in xmp viewer
then
i close digikam
then
i open sagittarius (a software to manage xmp, it uses exiftools)
http://sagittarius.vokod.com/

then
i open an album
then
i close sagittarius
then
i open digikam
then
success in xmp viewer i see xmp data

now i know who synchronizes xmp from exif and itpc