I know, I know, there's a million image galleries that can be added to your site. But none of them really seem to do what I want to do. Admittedly, my desires are a little weird ;)
Here's what I want out of an image gallery:
A fast and easy way to share photos from a trip, while I was still on the road. That often means very limited internet speed and bandwidth caps. A standard back-end management console just wasn't going to cut it - too much overhead.
A way to add introductory text at the top of the gallery. This could be anything from a brief statement about when and where the photos were taken to a whole travelogue.
A good mobile interface, without having to serve up different pages.
How it works
So, here's how my gallery works:
- Upload photos into a subdirectory using an FTP client
- A PHP page finds all the images in the subdirectory
- The main gallery page displays the thumbnails, title, and caption for each photo, pulled from the photo's metadata
- Photos are displayed in file name order, unless a FileOrder.txt file is also in the folder. If that file exists, photos are ordered as specified in the list in the file
- If an Intro.txt file exists, that file is run through a markdown converter and the resulting HTML is shown at the top of the gallery
The result is a gallery where you do all the prep work offline, and then use the minimum amount of data transfer to get the new gallery fully operational.
I have a preliminary version of the gallery up and running: Image Gallery
Here's a zip of the latest version, as of September 2013. Just unzip into a directory on your server.
Currently, it's in a sort of proof-of-concept stage. It works, but it needs some pretty-ing up.
Current to-do list:
Rewrite individual gallery page to work with .htaccess redirect (currently have to copy it into each subdirectory/gallery)
Get a proper lightbox working for displaying full-size images
Clean up the top-level Galleries page. Crop the thumbnails down to squares and lose the boxes.
Clean up the individual gallery pages at desktop resolutions. Looks kind of amateur.