If your friends send images to you, which they have tagged, those "friend-tags" are imported with the image into digikam. Often, you use different tags as your friends, so you remove all those "friend-tags" from the images, you have just imported. (See bug #348104) After this remove-action, you end up with a tag tree containing those "friend-tags", which are no longer assigned to a single image. If you want to get rid of these obsolete tags, too, with digikam 4.4.0, I have to "walk" through the whole tag tree myself and press "Delete" + "Yes" on every single tag, which shows the use counter "(0)" after its name. (A very boring task.) In this case, it would be very handy, if "Tags Manager" would provide a function as: "Delete all unused tags". This function would collect all tags, which - are not assigned to an image - and have no child-tags (or only unused child-tags) This list would be presented to the user: "Do you really want to delete the following tags? - sample tag 1 - sample tag 2 - ..." So the user can delete all those no longer needed tags with a few clicks. (Leave the boring work to the computer ;) Reproducible: Always
Veaceslav, This can be a job for tags Manager ? Gilles
Yes, this one can be implemented in Tags Manager. But I see that you first remove the tag from picture and then you remove the tag from tree. Why won't you simply remove the tag from the tree? When you remove the tag from the tag tree, the tag is removed from all images.
Veaceslav, my problem is: How to identify the tags to delete? If I first remove all tags from the pictures in the album "pictures of friend Paul" (see bug #348104), I easily can identify tags, which are now obsolete, since they are not used any more.
With this commit I implemented "Remove Unused Tags" in Tags Manager http://quickgit.kde.org/?p=digikam.git&a=commit&h=6943606fa92404c296c23a8982df47339dc4164e I will perform more tests, since is a dangerous option...
Thanks a lot! :)
Git commit 727514c264edae32a55f8b99a627047a521d0177 by Gilles Caulier. Committed on 03/06/2015 at 08:58. Pushed by cgilles into branch 'frameworks'. backport commit #6943606fa92404c296c23a8982df47339dc4164e from git/master to frameworks branch Related: bug 309243 M +123 -1 libs/tags/tagsmanager/tagsmanager.cpp M +4 -0 libs/tags/tagsmanager/tagsmanager.h http://commits.kde.org/digikam/727514c264edae32a55f8b99a627047a521d0177
New installation Linux Mint serena, just mucking about, finding my way around. digiKam version 4.12.0. Added some pictures, which evidently added some tags. Deleted some of the pictures. Asked tag manager to delete all unused tags -> digiKam crashed.