File System Generated Photo Gallery
A few months ago, I installed Gallery on this server in hopes to have a decent way to publish my photos to the web. After playing with it for a day, I realized that it wasn’t a good fit for me. I have thousands of photos I’ve kept on my desktop since 1999 (the day I got my first digital camera). I never really spent much time publishing any of them on the web except for a few random shots on Yahoo! Photos — but that really doesn’t satisfy my needs either. Here’s what I want in a photo gallery:
# Easy photo publishing
# Automatically generated thumbnails
# Automatically resized photos appropriate for the web
# Easy to customize (standards based) UI
# EXIF data display
Gallery can do 2-3, but falls short on 1 and 4. It can also do 5, but not the way I’m interested in.
What I don’t want:
* To publish photo-by-photo
* To add meta-data
* To have to hook photo data into a database (too much trouble)
* To spend my days and nights customizing PHP scripts to get the UI I want
* To turn my photo gallery into a “photoblog” (I just want to be able to view them in a nice interface)
After looking around Sourceforge for a while, I found Qdig — an easy-to-use PHP script that presents image files and directories as an online gallery. Qdig is one simple PHP script that will look for images in a directory (and/or sub-directories) then process them for display as a photo gallery — all thumbnails and resized photos are then cached in a subdirectory. Qdig satisfies 1-4 in my list of “must-haves.” Although, I had to customize the script to get the EXIF data from my photos to display (very minor customization).
The best part about Qdig is its simplicity. I already backup my photos to my webserver’s backup drive. All I had to do was expose the directories containing the photos I wanted to display on my webserver then drop the PHP script in the directory. Here’s a sample gallery containing pictures of our dog Truman (don’t mind the speed… my webserver runs on a 128k DSL line… it’s not the script that’s slow). The script allows you to easily customize the gallery’s UI. The EXIF data display was also pretty easy to add. Here’s the source of my customized Qdig script (feel free to use and distribute under the same license of the vanilla Qdig). Here are the instructions for how to install it on your website.
Also, one other thing I did was implement the Qdig PHP script as an index template in Moveable Type. The big benefit here is the ability to use MT’s meta data to drive the names and descriptions of your galleries. I’m sure there could be more benefits to using MT to generate the script, but for now, that’s it.
Enjoy!
December 8th, 2003 at 11:29 AM PST
Rich Manalang,
This post is going to be very useful for me. But, in my website, I need to create some kind of photo-blog, or at least something that you can update with photos and automatically make thumbnails of the past posts/photos.
Do you think it is possible to make it using Qdig and Moveable Type?
Thanks!
Sincerely,
Vitor
December 8th, 2003 at 12:03 PM PST
Yes, Qdig is a great photo album that will auto generate your thumbnails and alternate photo sizes. It’s completely configurable. The only problem is that it’s not tied to MT at all. But of you want to do that you can.
December 9th, 2003 at 5:39 AM PST
Rich,
I’ve been trying to access to take a look on : http://www.manalang.com/photos/index.phps and it never works.
Is this link correctly?
Thanks!
December 14th, 2003 at 6:07 AM PST
You want to check out (http://mig.sourceforge.net ) MIG. I’m in a similar position to you where gallery can’t be used (and doesn’t quite do what I want) so I’m on the lookout for alternatives. A pretty good demonstration of how it can be used is (http://www.kennsarah.net/photos ) here.
Unfortunately it’s not a genuine MT plug-in, but from my own experiments I’ve seen that in it’s present state (1.4.0 RC5) it can be wrapped up in the MT Template paradigm reasonably well. This is really helped by the fact that it uses templates itself - very handy.
April 22nd, 2004 at 5:39 AM PDT
.:Photogallery:.
manalang.com: File System Generated Photo Gallery…
July 17th, 2004 at 10:34 AM PDT
Rich,
I’m interested to look at the Qdig script adapted to read EXIF data, but the link (from here: http://manalang.com/archives/2003/09/29/file_system_generated_photo_gallery) seems to be broken. Any chance to get it some other way?
July 17th, 2004 at 7:25 PM PDT
Hi John. I fixed the link.
November 18th, 2005 at 1:24 AM PST
The link for your modified Qdig script is http://manalang.com/photos/index.phps but that brings up your gallery, not the source for the script. Please supply a link to a non-executable copy of the script.
August 29th, 2007 at 2:50 PM PDT
thanks for the cool info in this article …
am looking for a way to display my pics as well …
your artcile was helpful …
appreciated …
thanks …