Efficient photo tagging with digikam

By Peter Albrecht.

In the two years that I'm using digikam by now, I always searched for a way to tag the persons on my
photos in a fast and easy way. Now I discovered a fast way of tagging with the keyboard only.

== A) The batch-click way:

Having read the digikam handbook back in 2009 and using the tools, I saw evolve in the GUI, I ended
up with the following way:

1 switch to "thumbnails" view (you have to be able to select more than one image)
2 shift the preview size to the maximum of 256 pixel (you want to be able to recognize the people
on the photos)
3 switch the right side-view to "Caption/Tags" and select the tab "Tags"
4 select picture number one and look at the leftmost person on this picture
5 hold CTRL down and select all other pictures, showing this person
6 search for the corresponding tag in the right side-view, select it and apply (you can enable
"do not confirm when appying changes from right sidebar" in digikam settings "Miscellaneous", so one click saved)
7 if there are more persons in picture one, then select this picture again go to step 5, while
looking for the next leftmost person.
8 if you have all the persons in picture one, select picture two and look again for the
leftmost person, you have not tagged yet, and go to step 5. (toggling the button "tags already assigned"
in the lower right corner of the "Tags" tab, is very useful here)

This way you go through all your pictures. In the beginning you have to tag a lot of people, but coming
to the last pictures, most people will already be tagged and you can fast jump to the next picture.

Usability:
This process is good, if you have a high number of photos proportional to the amount of different
persons. If you have lots of different tags in your database, it's worth to think about substituting
step 6 with the "keyboard selection way", I'm going to explain next.

== B) The keyboard way:

A few days ago I found this bug-report at BKO: https://bugs.kde.org/show_bug.cgi?id=114465
According to it's number of 127 comment posts, it is the most impressive bug report, I've ever seen.

-- epic-tag on --
This bug report holds the secret of a tagging technique which gives you full keyboard-only tagging power.
-- epic-tag off --

And that's the way you go:
1 select an album
2 switch to "view image"-view (the bigger the picture, the better you can recognize the people,
you want to tag)
3 switch the right sideview to "Caption/Tags" and select tab "Tags"
4 click in the uppermost input box, which shows the text: "Enter new tag here..."
5 look for the leftmost person, you have not tagged yet
6 start typing a few letters of the desired tagname (You have to start with the first letters in your
tag name. There is no "mid word matching".)
-> you will see a list of possible tags appear that shrinks with every letter you add to the input box
7 if the list is reduced enough, use TAB to select the desired tag from this list
8 hit ENTER to assign this tag to your picture
9 if there are more persons, you want to tag, go to step 5 again
10 if all persons on this image have been tagged, hit PAGE_DOWN to go to the next image and
resume with step 5

Keyboard focus will always stay in the tag input box. So you can keep your hands on the keyboard all the
time and tag very fast. As mentioned above, you can enable "do not confirm when appying changes from right sidebar" in digikam settings "Miscellaneous" to get rid of the "Save Changes?"-Dialog.

Usability:
This process is most useful, if you have a high number of different persons proportional to the amount
photos. And especially steps 6 to 8 are very handy, if you have lot of tags, you don't want to scroll
through by hand.

== C) Keyboard shortcuts for specific tags

If you have certain tags, you use very often, you can assign a keyboard shortcut to it.
I did this with "places/myHome", which is assigned to CTRL+SHIFT+H.

But there is already a nice tutorial at:
http://scribblesandsnaps.wordpress.com/2011/05/25/assign-keyboard-shortcuts-to-tags-in-digikam/
So I'll keep this section short. ;)

== Some stats about my digikam usage:

Some numbers:
206 different tags (in multilevel-hierarchical order: places, people, other)
24,580 tag assignments (assigned in the last 2 years)
25,687 pictures in digikam database (collected in 10 years)

I'm currently using digikam 2.5.0, but the features mentioned above have been introduced in
earlier version. If you are curious about, just have a look at the corresponding NEWS-file
in the git repository:
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/show/project

E.g.: https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/project/NEWS.2.0.0

== Final words

Since method B is new to me, I can't tell about long term experience, but I guess the most efficient
way of tagging will be a mixture of the three methods mentioned above, depending on the situation. ;)

Since I was very surprised, reading about this powerful keyboard tagging feature by incident in a bug
report, I decided to write this article about digikam tagging. I hope, I can help spreading the knowledge
this way and help other users to have even more fun with this great product: digikam!

Thanks to all digikam contributors! You are doing a great job!

Peter Albrecht, 17.01.2012

Digikam tutorials on UserBase

Hello. You may know that we have many tutorials for digiKam on UserBase. I'd like to add today's Planet entry to them, if that is acceptable. Most of the tutorials linked from http://userbase.kde.org/Digikam/Tutorials are transcribed from blogs by Dmitri Popov and Mohammed Malik, and we always give attribution. Since I don't have contact for Peter Albrecht would you mind asking him if he agrees to this?

Digikam tutorials on UserBase

Hello Anne Wilson,

you met me today at userbase.kde.org. ;)
I'm honored to be picked for the tutorials section! So I happily
agree to add my article there.

Since I'm a great Wiki fan, I would like to add the article myself.
I plan to do this at monday.

Kind regards,
Peter Albrecht

Article transcribed to tutorial at Wiki: userbase.kde.org

This article has been transcribed to a tutorial at userbase.kde.org. (Enriched with a screenshot and markup)

This will come in handy

With 100K+ pictures, 500+ tags and an obsessive need to tag not only people but also objects and situations, I've struggled a long time with method 1. It fails when the tag collection is non-trivial due to the time it takes to scroll and search the tags for the right one. It has always been a letdown for me that _pure_ keyboard support for tagging was not really possible with DigiKam, but I guess it works okay for a limited number of tags if you can accept switching back and forth between mouse and keyboard.

I am very happy to hear about the bug in method 2 and I'll start tagging again because of it (it became too much work before so I haven't done so for a year or two). Further along, features such as searching for tags with inline matching, multiple image selection with the keyboard and tag search activated by just starting typing would really make tagging shine in DigiKam.

Great to see, I could help

Great to see, I could help someone!