Bug 301488

Summary: tool to remove empty image labels (tags)
Product: [Applications] digikam Reporter: Danni Coy <danni.coy>
Component: Tags-KeywordsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: caulier.gilles
Priority: NOR    
Version: 2.6.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Sentry Crash Report:

Description Danni Coy 2012-06-09 02:59:38 UTC
after importing a whole bunch of files which are poorly tagged or after I have accidently mistyped a tag while adding it I end up with a lot of tags that simply aren't necessary and deleting them one by one is slow and painful. 

I would like a tool that could remove any tag that has no images attached to it.

Reproducible: Always
Comment 1 Marcel Wiesweg 2012-06-09 13:08:03 UTC
Looks like a good task for command line metadata editors
Comment 2 caulier.gilles 2012-06-09 13:31:17 UTC
Agree, it's a low level maintenance feature... 

Look to ExifTool or Exiv2 command line tools to manage metadata in batch...

Gilles Caulier
Comment 3 Danni Coy 2012-06-09 14:51:32 UTC
These command line tools will work with the digikam database files?
Comment 4 Marcel Wiesweg 2012-06-10 16:51:34 UTC
I see you are referring to tags inside digikam's db in this case. Still seems to be a very special case. Something like this should be solved by scripting, unfortunately our scripting interface is underdeveloped.
Comment 5 Danni Coy 2012-06-11 01:40:26 UTC
an alternate solution to the problem might be a mechanism for merging tags.