A web interface to digikam

Currently I have 21458 photos according to digikam's database (which are using 13 Gb according to du ). When someone asks me to put some album in my web server I hate to lose my time exporting to html, generating thumbnails and resized 1024x768 versions of my pictures which occupy space in my HD that I'm usually hesitant to remove.

Also, when kimdaba exports the images to html, it includes the associated tags, but digikam doesn't. which makes digikam's web exports be a bit unusable for me.

So last saturday evening I started a new project: Creating a web interface to digikam. Currently it's nearly done. The current completed features are:
* python cgi based
* In the config file you specify the location of digikam's albums folder, and it opens directly digikam's db as well as the original pictures
* It creates resized images and thumbnails on demand from the original picture and cache them in a special directory (which can be safely removed, since the script regenerates the cache from the original files when needed)
* It keeps track of the number of times each image has been seen (and the persons who saw them)
* The albums that can be seen from the web are easily configurable in a simple text file which contains a like for each Album.
* Uses cookies to always paint images at the same size for each user. Those images (usually in lower resolution than the original) are also generated in run time and cached.
* Shows the thumbnails of the previous and next pictures when seeing one.
* When generating a thumbnail or resized version of a movie, it adds a movie indicator to the image.

There are still some things that I'd like to fix before publishing the cgi scripts (like making the interface localized), but if anybody wants to know how it looks like, here are a couple of screenshots . Yes, my css could be better, but I'm not a designer. If someone has any idea on how it should look like, I'll be happy to read it (or even better, getting an example html file of how it should look like).

[image:1958 size=original] [image:1959 size=original]


What else can I say...

I was using konq's image gallery plugin, but the results are not-so-good, and regenerating the sub tree each time I add a new photo is sometimes expensive, even if it doesn't create easy-to-download image versions (most of my photos are ~1MiB, and my upload stream is just 128Kib/s)... well, I guess you know its flaws.

Can't wait to use it!

By styxman at Tue, 04/25/2006 - 12:18

I created something similar using PHP5. It doesn't have some of your features but the reason I wrote it was that I/others could browse my photos by tags, just click on "People" and get all images that have to do with people.

It's here: http://www.kde-apps.org/content/show.php?content=37639


By thorbenk at Tue, 04/25/2006 - 18:39

It looks nice. I should have looked if something like that existed before. But I'm afraid I wouldn't have been able to help with it anyway. I don't develop in php.

Btw, yes, I was thinking on allowing to click on a tag to search for it. it's in my TODO.

By Antonio Larrosa at Tue, 04/25/2006 - 20:21

My implementation is really kind of slow, as I don't know too much about advanced SQL stuff, so I pretty much plucked some queries directly from digikam's source code.

I'm looking forward to seeing your version of it,
blog about it when it's done, please :-)


By thorbenk at Tue, 04/25/2006 - 22:17

Hi, I've been looking for something similar, do you have the source up for download somewhere? Thanks - Prashanth

By prashanthellina at Wed, 10/24/2007 - 07:54

I recently released a digikam web HMI called DigikamWebUi, based onthe CakePhp framework.
Please find it on the following link http://lauters.fr/blog/digikamwebui/
I hope it could alos help you.


By Mehdi at Fri, 01/10/2014 - 12:03