Welcome to my world! My name's Nik, and I'm a British expatriate who has been living in Paris, France for the last five years. Even though I never planned to stay in Paris for very long, now I'm here I've no plans to leave soon - the beauty of Paris has never worn off, and so far it's been a five year long vacation! Enjoy my ramblings...
apartments

« Crossing the road | Main | Holiday in an apartment rather than a hotel »

Photo album

Quite a while ago I spent ages trying to find a simple cgi or php webpage that could create a thumbnail photoalbum from the folders that contained the photos. All I wanted to do was upload all my photos, plus this page, and that should be it - no rebuilding, converting etc.

I never found it, which seemed amazing as it's such a simple thing to do. So, I made my own and here it is. Just put it in a folder called album (or whatever), then create a subfolder called Pics - this folder contains all your photos sorted out in subfolders with good names (like xmas2005 etc). Then add a second subfolder called thumbs, and have exactly the same as Pics, but all the pictures have been shrunk to thumnail size (I use Irfan view for this). And that's it. When you add more photos, just upload them, no changes to the photo album page needed.

In all, it's about 20 lines of very simple php code. I can understand why I couldn't find this anywhere....


Oh, and you can see an example of how I've used it on my photo album page here.