Bug 188999

Summary: XMP tags not imported properly
Product: [Applications] digikam Reporter: Lars Jacob <jacob.lars>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jacob.lars, marcel.wiesweg
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0
Sentry Crash Report:

Description Lars Jacob 2009-04-07 01:23:49 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Gentoo Packages

I've got a 10k+ image collection and wanted to migrate it from f-spot to digikam. The picture tags are stored as XMP tags (dublin core, subject, default by f-spot). Digikam managed to import some tags, when I imported a subset of about 500 pictures. But when importing the rest it didn't work. I can see the tags in the Metada
Comment 1 Lars Jacob 2009-04-07 01:29:14 UTC
sorry my browser made mess...
continuing my description:
I can see the tags in the Metadata/XMP site tab, but if I use the "Read metadata from file to database" it just recognizes sometimes this tags, but only if I set up a equally named tag beforehand. But with some pictures it doesn't work at all or only the first tag.
If needed I can provide sample images.
Comment 2 caulier.gilles 2009-04-07 06:31:33 UTC
yes, please give us file samples to test

Gilles Caulier
Comment 3 Lars Jacob 2009-04-07 14:57:15 UTC
Ok here are three pictures which I imported together with others from a folder. 

http://jaclar.files.wordpress.com/2009/04/dsc05372.jpg
tag didn't got detected

http://jaclar.files.wordpress.com/2009/04/dsc05373.jpg
only one (diashow) of two (diashow,Cataratas) got detected

http://jaclar.files.wordpress.com/2009/04/dsc05404.jpg
both included tags (diashow,Cataratas) got detected

I imported this folder twice because I wanted to make sure that this behaviour is reproducible. And yes, digikam showed in both cases the same behaviour.

Another observation I made: I made a new tag by hand and after a restart of digikam some pictures got this tag. But not all of them.

Thanks a lot for your help!
Comment 4 caulier.gilles 2009-06-19 09:34:40 UTC
Marcel,

I can reproduce this problem only in one situation.

1/ digiKam do not run. copy all files in collection and start digiKam. during scan at startup all is imported properly.

2/ digiKam run. copy all in collection : change detection performed by KDirWatch found new item by tags are not created properly.

Question : this is not the same code for both cases ?

Lars, can you confirm my investigations ?

Gilles Caulier
Comment 5 caulier.gilles 2009-07-11 12:02:50 UTC
Marcel,

Are you see my comment #4 ?

I think this problem will be solved when Startup scan code will be used with KDirWatch relevant code from digiKam. right ?

Gilles
Comment 6 Marcel Wiesweg 2009-07-12 16:56:50 UTC
The scanning code in the end is the same for both situations (ImageScanner).

I just tested adding the images with digikam running, by dragging from here into main view. My results:
5372: /Cataratas
5373: /Cataratas, /diashow
5404: /Cataratas, /diashow

So I cannot reproduce any problem here.
Comment 7 caulier.gilles 2009-07-20 12:00:10 UTC
Ok, i close this file as WORKFORME using digiKam 1.0.0-beta3

Gilles Caulier