Bug 193482 - XMP/IPTC fields in Batch Rename tool
Summary: XMP/IPTC fields in Batch Rename tool
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-BatchQueueManager (show other bugs)
Version: 1.0.0
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 12:45 UTC by Michal Thoma
Modified: 2016-07-03 20:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Thoma 2009-05-21 12:45:33 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Debian stable Packages

I would like to batch rename my images using fields from XMP/IPTC data, especially important fields are Headline and Caption (Description) and Author. 

The reason is that still few people even in publishing industry are aware of metadata and even they don't have programs to display it or they don't know how to operate it. So when I'm making selections of images for them I need to make headlines and capitions easily readable for them.
Comment 1 caulier.gilles 2009-05-21 12:58:34 UTC
Andi,

We have 2 solutions for this file :

1/ fork to kipi-plugins as well and forget.
2/ implement this feature in digiKam Batch Queue manager (my preferred)

Your viewpoint ?

Gilles
Comment 2 Michal Thoma 2009-05-21 13:16:19 UTC
Well if there is going to be renaming in Batch Queue Manager I think this feature should be there. Actually this would fit the workflow as the preparing images for somebody commonly also consists of converting, resizing, sharpening etc. Having everything in one tool seems as the ideal solution.
Comment 3 caulier.gilles 2009-06-03 08:51:52 UTC
Andi, it's possible to add rules in your rename customizer widget to use xmp/iptc tags in rename scheme ?

Gilles Caulier
Comment 4 Mikolaj Machowski 2009-06-03 11:16:42 UTC
Rename of my dreams in digiKam should have KRename possibilities.
There is stable 3.9.3 release for KDE4 on kde-apps but its Exiv2 plugin is broken. SVN version 120 is mostly working if you want to test it.

kde-apps:
http://www.kde-apps.org/content/show.php/KRename?content=9876
SVN:
svn co http://krename.svn.sourceforge.net/svnroot/krename/trunk/

In minimum maybe digiKam and KRename could reuse Exiv2 plugin? Of course KRename offers much, much more but I did simple tests with "Open with..." and it seems working (although hardly intuitional solution ;).
Comment 5 caulier.gilles 2009-06-09 12:22:39 UTC
Andi,

Have you seen this entru for you rename customizer widget ?

Gilles Caulier
Comment 6 Andi Clemens 2009-06-09 16:00:55 UTC
Hmm don't know if a KRename integration would be useful. We can not have dependencies on every app out there, digiKam is already a "dependency monster" :-)
I will take a look if we can easily add the functionality.

Andi
Comment 7 caulier.gilles 2009-06-09 16:05:38 UTC
No, Krename is a wrong way. But taking metadata info to format renaming is easy with KExiv2...

Gilles
Comment 8 Andi Clemens 2009-09-01 17:14:03 UTC
SVN commit 1018320 by aclemens:

Activate Metadata parser for the ManualRenameWidget.
Right now EXIF, IPTC and XMP tags can be used.
To set the keywords, a slightly modified metadatapanel (used in
metadata setup page) is used.

BUG:193482

 M  +18 -0     libs/widgets/metadata/metadatapanel.cpp  
 M  +4 -2      libs/widgets/metadata/metadatapanel.h  
 M  +6 -6      tests/manualrenametest.cpp  
 M  +21 -16    utilities/cameragui/cameraiconview.cpp  
 M  +8 -1      utilities/cameragui/renamecustomizer.cpp  
 M  +8 -2      utilities/manualrename/manualrenameparser.cpp  
 M  +6 -7      utilities/manualrename/manualrenamewidget.cpp  
 M  +2 -2      utilities/manualrename/manualrenamewidget.h  
 M  +1 -1      utilities/manualrename/parsers/filenameparser.cpp  
 M  +149 -4    utilities/manualrename/parsers/metadataparser.cpp  
 M  +8 -0      utilities/manualrename/parsers/metadataparser.h  
 M  +2 -2      utilities/manualrename/parsers/parser.h  
 M  +2 -2      utilities/queuemanager/queuelist.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1018320
Comment 9 Andi Clemens 2009-09-01 23:51:09 UTC
Here is a little screenshot of the MetadataParser for the ManualRename utility:
http://farm4.static.flickr.com/3486/3878768695_a03bfea299_o.png

In this example we added the exposure time to the new filename, but you can add as many fields as you like. Use the "Metadata" button or menu entry in the toolbutton to access all the metadata keywords.
Comment 10 Andi Clemens 2009-09-02 12:27:59 UTC
Another screenshot showing the MetadataParser dialog for entering the keywords:
http://farm4.static.flickr.com/3476/3880341699_9e4a5c4d16_o.jpg

If you select more than one keyword, a custom separator can be set...