digiKam thumbnails and Albums with photos stored on remote shares

March 22nd, 2009 | Tags: , , , , , ,

My photo collection is stored on the server and accessed by cifs protocol to my notebooks. I’m using digiKam to browse my collection in KDE.

This software is storing all thumbnails in ~/.thumbnails/ according http://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html and create sqlite database where it stores all information about photos.

  • The advantage is, that these thumbnails can be also used by other KDE viewers (like Gwenview).
  • The disadvantage can be that other viewers can generate new thumbnails which are no longer useful an the size of that directory can grow…

I decided to write script which can delete all useless thumbnails and keep only the ones used by digiKam. The reason is simple – I don’t want remove all thumbnails and regenerate them again only from digiKam, because I have more than 35k photos so it take a long time…

Here is my digiKam collection configuration:

digiKam Configuration

This script deletes all thumbnails of the photos in

$HOME/.thumbnails/large/

which are not on network shares :

(It preserves all the thumbnails of photos stored on network share, which take ages to create because of network or which are not changing, and delete all locally ones)

thumbnails_delete.pl

Maybe you can find it helpful…

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
No comments yet.