Bug 197285 - Understand keyword hierarchies with different delimitors.
Summary: Understand keyword hierarchies with different delimitors.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 1.0.0
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-20 17:19 UTC by Anders Rønningen
Modified: 2017-08-13 15:38 UTC (History)
2 users (show)

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


Attachments
Pic exported from LR with hierarchical tag. (806.32 KB, image/jpeg)
2009-06-20 23:35 UTC, Anders Rønningen
Details
Multiple LR hierarchies. (202.50 KB, image/jpeg)
2009-06-23 20:00 UTC, Anders Rønningen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Rønningen 2009-06-20 17:19:13 UTC
Version:            (using KDE 4.2.4)
OS:                Linux
Installed from:    Ubuntu Packages

I have been using Lightroom for a while, and have my keywords arranged in a hierarchy there. When I import my collection to digikam, it does not understand that this is hierarchical.

Is it possible to make Digikam understand tag hierarchies that has other delimiters than Digikam uses itself? Is it allowed to use Lightrooms delimiter (is it '/'?) in a keyword name? If not, it could maybe be a small fix?
Comment 1 caulier.gilles 2009-06-20 17:30:00 UTC
digiKam use already '/' has delimiter.

Keyword are stored with no delimiters in IPTC/XMP keywords tags. But we store Tags path with delimiters in a dedicated digiKam XMP namespace.

I'm sure that LR do the same. We just need to know which namespace and Tags from XMP is used.

Please provide some photos to make investigations.

Gilles Caulier
Comment 2 Anders Rønningen 2009-06-20 23:35:10 UTC
Created attachment 34696 [details]
Pic exported from LR with hierarchical tag.
Comment 3 Anders Rønningen 2009-06-20 23:36:04 UTC
One correction from my initial report. Lightroom uses "|" as delimiter.
Comment 4 caulier.gilles 2009-06-23 15:19:04 UTC
Anders,

XMP tag used is below :

Xmp.lr.hierarchicalSubject    XmpBag      1  Places|Torpa|Fosstun

Note : Current Exiv2 library do not know LR XMP tags yet. Please open a file in Exiv2 bugzilla.

Import and export digiKam tags from/to this LR XMP is trivial.

Gilles Caulier
Comment 5 caulier.gilles 2009-06-23 15:33:17 UTC
Anders,

Can you provide an image with more than one keywords hierarchy assigned, please ?

Gilles Caulier
Comment 6 caulier.gilles 2009-06-23 15:49:17 UTC
SVN commit 985792 by cgilles:

import tags hierarchies from LightRoom
CCBUGS: 197285


 M  +10 -131   dmetadata.cpp  
 M  +6 -9      dmetadata.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=985792
Comment 7 caulier.gilles 2009-06-23 15:53:10 UTC
Anders,

Import tags from LR sound working fine with your picture now :

http://farm4.static.flickr.com/3376/3653368771_6d18cdeb94_o.png

Look message from the console:

digikam(13823)/digikam (core) Digikam::DImg::load: "/mnt/data/Rep1/Test Photographs/Metadata/LR/LR.jpg"  : JPEG file identified                                                                                                   
digikam(13823)/digikam (core) Digikam::ImageScanner::addImage: Adding new item "/mnt/data/Rep1/Test Photographs/Metadata/LR/LR.jpg"                                                                                               
digikam(13823)/digikam (core) Digikam::DMetadata::getImageTagsPath: Tags Path imported from LR:  ("Places/Torpa/Fosstun")                                                                                                         
digikam(13823) Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 1455 "/mnt/data/Rep1/Test Photographs/Metadata/LR/LR.jpg"                                    

Please test with more image from your collection using current code from svn (1.0.0-beta2)

Gilles Caulier
Comment 8 caulier.gilles 2009-06-23 16:33:03 UTC
SVN commit 985834 by cgilles:

Export digiKam tags hierarchies to LightRoom XMP namespace
CCBUGS: 197285


 M  +7 -1      dmetadata.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=985834
Comment 9 Anders Rønningen 2009-06-23 17:50:36 UTC
Great! I'm actually in OS X at the moment, preparing for going back to Ubuntu, so I'll check as soon as I have the chance. Do you still want the image with more than one hierarchical tag?
Comment 10 caulier.gilles 2009-06-23 18:51:07 UTC
yes, i want to check multiple keywords path from LR...

Gilles Caulier
Comment 11 Anders Rønningen 2009-06-23 20:00:23 UTC
Created attachment 34768 [details]
Multiple LR hierarchies.
Comment 12 caulier.gilles 2009-06-23 21:23:17 UTC
yes, work fine :

digikam(21568)/digikam (core) Digikam::ImageScanner::addImage: Adding new item "/mnt/data/photo/test/B.K.O197285.jpg"
digikam(21568)/digikam (core) Digikam::DMetadata::getImageTagsPath: Tags Path imported from LR:  ("Places/Torpa/Fosstun", "Things/Cars/JC89414")

Xmp.lr.hierarchicalSubject XmpBag 2 Places|Torpa|Fosstun, Things|Cars|JC89414

Gilles Caulier
Comment 13 Anders Rønningen 2009-06-24 19:46:08 UTC
Tested this on a folder with a bunch of pics with no complications. Thanks for the quick fix :)