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?
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
Created attachment 34696 [details] Pic exported from LR with hierarchical tag.
One correction from my initial report. Lightroom uses "|" as delimiter.
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
Anders, Can you provide an image with more than one keywords hierarchy assigned, please ? Gilles Caulier
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
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
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
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?
yes, i want to check multiple keywords path from LR... Gilles Caulier
Created attachment 34768 [details] Multiple LR hierarchies.
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
Tested this on a folder with a bunch of pics with no complications. Thanks for the quick fix :)