Bug 198406 - xmp not synchronized, uncomplete
Summary: xmp not synchronized, uncomplete
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 1.0.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-30 13:56 UTC by Philippe ROUBACH
Modified: 2017-08-13 07:29 UTC (History)
3 users (show)

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


Attachments
metadata setting (140.06 KB, image/png)
2009-06-30 14:49 UTC, Philippe ROUBACH
Details
metadata in the right panel (168.55 KB, image/png)
2009-06-30 15:35 UTC, Philippe ROUBACH
Details
xmp block (57.98 KB, image/png)
2009-07-01 10:55 UTC, Philippe ROUBACH
Details
what metadata i see in xmp in gwenview (77.23 KB, image/png)
2009-07-08 17:20 UTC, Philippe ROUBACH
Details
what new metadata i see in xmp in digikam (183.30 KB, image/png)
2009-07-08 17:21 UTC, Philippe ROUBACH
Details
photo about comment #26 and #27 (855.11 KB, image/jpeg)
2009-09-03 12:17 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2009-06-30 13:56:18 UTC
Version:           1.0.0-beta1 (using 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1)), Mandriva Linux release 2010.0 (Cooker) for i586)
Compiler:          gcc
OS:                Linux (i686) release 2.6.30-desktop-2mnb

i load photo in digikam
i see there data in Exif and iptc
synchronizing is well checked in xmp properties
i close digikam
i open digikam
there is nothing in xmp. is it normal ? it is not automatical ?

i synchronize photos with digikam db
then
i have comments in xmp
but
i am very disappointed because there is nothing but comments copied from exif,iptc, digikam db. is it normal ?
Comment 1 caulier.gilles 2009-06-30 14:12:29 UTC
What's your settings from metadata setup ? Take a shot.

Metadata are written in files if you perform an action from Caption & Tags or with Tools/Sync... menu entry.

Gilles Caulier
Comment 2 Philippe ROUBACH 2009-06-30 14:49:56 UTC
Created attachment 34944 [details]
metadata setting

metadata setting
Comment 3 caulier.gilles 2009-06-30 14:56:34 UTC
And what do you see in Metadata side bar from the right side of digiKam ?

Gilles Caulier
Comment 4 Philippe ROUBACH 2009-06-30 15:35:17 UTC
Created attachment 34945 [details]
metadata in the right panel
Comment 5 Philippe ROUBACH 2009-06-30 15:36:36 UTC
where are tags , gps data, date ?
Comment 6 caulier.gilles 2009-06-30 16:06:43 UTC
Exif...

Gilles caulier
Comment 7 Philippe ROUBACH 2009-06-30 16:13:50 UTC
in this context this means where in xmp are tags,gps data, date

i need this to use it with jalbum
Comment 8 Marcel Wiesweg 2009-06-30 22:31:21 UTC
You are talking about copying the whole EXIF data to its corresponding exif: namespace in XMP, a sort of "legacy EXIF" -> XMP migration, is it?
Comment 9 Philippe ROUBACH 2009-06-30 22:55:07 UTC
1. whole why not in the future to manage only one packet of data

the aim is to replace exif, iptc by xmp, no ?

today i must keep exif and iptc for picasaweb

2. today it would be a good thing to copy legend, date & time, tags, gps data

for my photos web serveur jalbum
Comment 10 caulier.gilles 2009-07-01 05:14:38 UTC
>whole why not in the future to manage only one packet of data
>the aim is to replace exif, iptc by xmp, no ?

no XMP do not replace Exif. only IPTC. In fact not all Exif information can be fork to  XMP, and all makernote data are lost.

Exif : camera informations
Xmp : photographer + post processing informations.

Gilles Caulier
Comment 11 Philippe ROUBACH 2009-07-01 10:55:10 UTC
Created attachment 34961 [details]
xmp block

see the shot of the xmp block
i take the shot of a jalbum settings windows

you see :

date,CreateDate, ModifyDate, DateTimeOriginal

title, subject, description, Label (tags ?)

GPSLongitude, GPSLongitudeRef, GPSLatitude, GPSLatitudeRef, GPSAltitude, GPSAltitudeRef
Comment 12 caulier.gilles 2009-07-01 11:04:30 UTC
>date,CreateDate, ModifyDate, DateTimeOriginal

>title, subject, description, Label (tags ?)

All these _tags_ are managed by digiKam to duplicates values from Exif to XMP. Just set on the right option in metadata settings panel.

>GPSLongitude, GPSLongitudeRef, GPSLatitude, GPSLatitudeRef, GPSAltitude,
GPSAltitudeRef

For this one, i'm not yet sure...

Gilles Caulier
Comment 13 caulier.gilles 2009-07-01 11:05:22 UTC
Important : in digiKam there is not option to sync XMP with Exif/Iptc. This is what you want ???

Gilles Caulier
Comment 14 caulier.gilles 2009-07-01 11:08:01 UTC
No, XMP GPS tags are not drived currently. Only Exif tags...

http://lxr.kde.org/source/KDE/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2gps.cpp#275

Gilles Caulier
Comment 15 Philippe ROUBACH 2009-07-01 12:24:04 UTC
(In reply to comment #12)

ok i will test but perhaps later because i prepare ... a new bike trekking.
Comment 16 Philippe ROUBACH 2009-07-01 12:30:59 UTC
(In reply to comment #13)
> Important : in digiKam there is not option to sync XMP with Exif/Iptc. This is
> what you want ???
> 
> Gilles Caulier

how to say ?

knowing the working rules of digikam i was expecting by default this is the case. For me there is there an heterogeneity. i was surprising.
Comment 17 caulier.gilles 2009-07-01 15:38:11 UTC
SVN commit 990026 by cgilles:

libkexiv2 from trunk : handle GPS info from XMP (Read/Write)
CCBUGS: 198406


 M  +180 -74   kexiv2gps.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=990026
Comment 18 Philippe ROUBACH 2009-07-02 14:43:49 UTC
 
i review all my needs

i need to work with picasa then i need exif and iptc
i need to work with jalbum and i want to work with xmp then i need xmp

i need the ability to ask to digikam in one command to synchronize for all my albums, for all my photos the common data from exif, iptc to xmp

i need this synchronization is automatical for any new photo

today i need in xmp :

all about date
all about geolocalisation (today no ability to ask synchronization)
all about legend (only this works but not automatical)
all about sublocation,location,states,country name (today no ability to ask synchronization)
all about tags (today no ability to ask synchronization)

please add the management of country name (you only display it). in digikam there is only contry code management

becareful about iptc ascii tags.
 digikam must convert them to unicode and must give the ability to user to ask "please do not convert to unicode because it is already unicode"
Comment 19 Marcel Wiesweg 2009-07-02 16:12:05 UTC
If I remember correctly there were plans to support porting EXIF and IPTC to XMP directly as core functionality of exiv2?
Comment 20 caulier.gilles 2009-07-02 16:29:17 UTC
Marcel, 

An Exiv2 plan yes, already implement i don't think...

I CC Andreas to get more info about

Gilles
Comment 21 Andreas Huggel 2009-07-02 18:02:26 UTC
Gilles, Marcel,

Conversion functionality has been available since version 0.17: http://www.exiv2.org/doc/convert_8hpp.html

The latest XMP specs has more details on conversions, some of which are not yet implemented: http://dev.exiv2.org/issues/show/601

Andreas
Comment 22 Mikolaj Machowski 2009-07-02 21:02:17 UTC
Radical idea: drop direct IPTC support (similar to FotoStation).

If possible write data to IPTC field corresponding to XMP if not, pity (most important have clear "cousins" so shouldn't be issue).

If imported image has IPTC fields but not XMP - populate XMP fields and use directly only them.

The only problem would be situation when imported image has IPTC and XMP corresponding fields which would be different. Importing tool should in such cases ask what to do: Choose XMP version, Choose IPTC version, Choose later - in meantime values would be merged into one value and written to both sets of data.
Comment 23 Marcel Wiesweg 2009-07-05 16:50:05 UTC
I am currently favoring the idea to honor the the Metadata Working Group Guidance for these XMP vs. Exif/IPTC cases. This can be something to talk about on a coding sprint if Andreas Huggel is present as well.

It states that IPTC should not be written to unless already present; and unless consumers will read the file the dont read XMP. This case, however, cannot generally be excluded for us.
Comment 24 Philippe ROUBACH 2009-07-08 17:16:27 UTC
today i install again Mandriva 2010.0a1 thus i installed digikam 1.0.0b2 directly and not after 1.0.0b1 to test

when first opening digikam with the assistant i select "to copy metadata in image"
i copied some pictures i manage with digikam 0.9.6

i synchronize album with db

i see nothing in xmp

i close digikam

i open digikam

i see what you see in "metadata in the right panel" joined capture

i close digikam

i open gwenview

i see the metadata, surprise !

i seee many dates, user comment, tags list (see gwenview capture)
then
i open digikam
then
i don't see :
- more data than when i first opendigikam after synchronizing with db
- not all but a great part of what i see in gwenview : many dates, user comment, tags list


see the new metadata capture

for my purpose i miss only :
- sublocation
- location
- city
- state
- country
- gps
- data in xmp
Comment 25 Philippe ROUBACH 2009-07-08 17:18:24 UTC
in my comment #24

replace "i don't see" by "i see"
Comment 26 Philippe ROUBACH 2009-07-08 17:20:28 UTC
Created attachment 35158 [details]
what metadata i see in xmp in gwenview
Comment 27 Philippe ROUBACH 2009-07-08 17:21:34 UTC
Created attachment 35159 [details]
what new metadata i see in xmp in digikam
Comment 28 Philippe ROUBACH 2009-07-08 17:23:41 UTC
in my comment #24

delete "- data in xmp" at the end
Comment 29 Marcel Wiesweg 2009-08-01 12:38:56 UTC
1)Can you give a concise summary which values you want to have written into XMP?
2) As to your comments #26 and #27: This relates to any values missing in the XMP panel in digikam but shown in gwenview? Please send me a sample picture (to my private mail address, if the file is big)
Comment 30 Philippe ROUBACH 2009-09-03 11:48:02 UTC
(In reply to comment #29)
> 1)Can you give a concise summary which values you want to have written into
> XMP?

in comment #18 i review all my needs
in comment #11 you can see (screenshot) what there is in xmp field in jalbum

if it is not enough feel free to ask for me
Comment 31 Philippe ROUBACH 2009-09-03 11:52:48 UTC
(In reply to comment #12)
> >date,CreateDate, ModifyDate, DateTimeOriginal
> 
> >title, subject, description, Label (tags ?)
> 
> All these _tags_ are managed by digiKam to duplicates values from Exif to XMP.
> Just set on the right option in metadata settings panel.
> 


yes now they are well duplicated in xmp
Comment 32 Philippe ROUBACH 2009-09-03 11:54:37 UTC
(In reply to comment #12)
 
> >GPSLongitude, GPSLongitudeRef, GPSLatitude, GPSLatitudeRef, GPSAltitude,
> GPSAltitudeRef
> 
> For this one, i'm not yet sure...
> 
> Gilles Caulier

digikam 1.0.0b4

they are not duplicated
Comment 33 Philippe ROUBACH 2009-09-03 12:05:23 UTC
(In reply to comment #13)
> Important : in digiKam there is not option to sync XMP with Exif/Iptc. This is
> what you want ???
> 
> Gilles Caulier

it's difficult to define a good gui.

common data between exif, iptc, xmp must be synchronized because i need the three today (i use picasaweb and jalbum and my still camera still uses exif)

my wish is xmp is the only one i use to manage metadata or perhaps a universal template to manage metadata and then in the work flow the ability to use exif, iptc, xmp


if xmp is the
Comment 34 Philippe ROUBACH 2009-09-03 12:06:39 UTC
(In reply to comment #8)
> You are talking about copying the whole EXIF data to its corresponding exif:
> namespace in XMP, a sort of "legacy EXIF" -> XMP migration, is it?

yes according to my need with jalbum
Comment 35 Philippe ROUBACH 2009-09-03 12:17:20 UTC
Created attachment 36652 [details]
photo about comment #26 and #27

(In reply to comment #29)
> 2) As to your comments #26 and #27: This relates to any values missing in the
> XMP panel in digikam but shown in gwenview? Please send me a sample picture (to
> my private mail address, if the file is big)
Comment 36 Philippe ROUBACH 2009-12-01 12:06:33 UTC
digikam 1.0.0rc
kipi-plugins 0.8

same pb : nothing is synchronized to xmp

xmp view is full empty
Comment 37 Philippe ROUBACH 2009-12-06 11:57:07 UTC
digikam 1.0.0rc
kipi-plugins 0.9

now i understand the pb

if this is an imported photo in digikam with all exif and iptc data
then nothing is synchronized in xmp

if you imported a photo caption
then
you add caption and keywords
then
all exif and iptc data are synchronized to xmp

it remains a pb : gps data are not synchronized to xmp
Comment 38 caulier.gilles 2009-12-09 11:37:14 UTC
I'm suprized. look code from libkexiv2 from trunk :

http://lxr.kde.org/source/KDE/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2gps.cpp#312

In this method, GPS info are written in XMP.

Are you sure that your Exiv2 is compiled with XMP support ? Do you use libkexiv2 from trunk ?

Gilles Caulier
Comment 39 Philippe ROUBACH 2009-12-09 11:55:02 UTC
i use mandriva 2010.1 cooker
and the packages from cooker sources

i don't compile myself anything

i think packager is Nicolas Lécureuil
Comment 40 caulier.gilles 2009-12-09 12:23:06 UTC
Code from trunk is for KDE 4.4. Mandriva 2010.0 use KDE 4.3

But here i compile all from trunk without problem...

Gilles Caulier
Comment 41 Philippe ROUBACH 2009-12-09 12:29:35 UTC
you read too fast

i use 2010.1 not 2010.0 to make test

2010.1 uses kde 4.3.80 (4.4b1)
Comment 42 Philippe ROUBACH 2009-12-09 12:36:56 UTC
libkexiv2_8 - Bibliothèque graphique pour KDE4​

        * ven. déc. 04 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 2:4.3.80-1mdv2010.1
        + Revision: 473342
        - Add shared-desktop-ontologies-devel as BuildRequires
        - Update to KDE 4.4 Beta1
Comment 43 Marcel Wiesweg 2009-12-09 18:18:27 UTC
There is a bit of misconception or miscommunication in these bug reports here.
As I understand, Philippe expects that digikam would somehow copy metadata to XMP for all pictures that it finds. We won't do that of course automatically, digikam won't touch a picture unless you tell it so.
I assume a batch tool to create XMP or the existing functionality to write metadata to images will do the job.
Comment 44 Philippe ROUBACH 2009-12-09 18:58:20 UTC
my pb is :

first case :
today i work with digikam 0.9.6
i have numerous photos and videos already with exif and iptc data and without xmp data
in the future i will switch to  digikam 1.0.0
i need when digikam scans and founds new photo it synchronizes xmp with exif and iptc

second case :

several photos are already in digikam collection
i use another tool to geotag,to set gps image direction, gps image direction reference, to set automaticaly location name , region name, country name in exif
then
i need for these photos a feature to synchronize xmp 

thanks
Comment 45 caulier.gilles 2011-12-16 16:23:38 UTC
Philippe,

This file still valid using digiKam 2.x serie ?

Gilles Caulier
Comment 46 Philippe ROUBACH 2011-12-19 09:29:25 UTC
sorry i have not any 2.x digikam

i created a VM with mageia 2 alpha2 according to test digikam 2
but this VM fails to start.
i am waiting for mageia 2 beta 1

i am ok with marcel
 i suggest digikam provides :
- an option in the import tool settings
- an option in digikam settings and a command per photo to synchronize xmp
Comment 47 caulier.gilles 2013-11-21 22:12:35 UTC
Philippe,

This file still valid using digiKam 3.x serie ?

Gilles Caulier
Comment 48 Philippe ROUBACH 2014-01-11 15:53:14 UTC
opensuse 13.1 , kde 4.12 , digikam 3.5

no more pb