I've been taking digital pictures for roughly five years now. Over that time I've taken a few thousand. They're poorly organized but at least they're on-line.
Every once in a while, someone asks me what software I used to create my on-line photo gallery, and I laugh to myself. Why? Because it's two little Perl scripts that have evolved a bit over the last few years. But they're still really, really basic and just barely do what I need.
I'm posting them here in the hopes that someone else finds them useful. As unlikely as that is, at least I can point others to this page when then ask me what I use. :-)
WARNING: This is hackerware. If you're not comfortable figuring out how the code works and adjusting to meet your needs, please move along. These are not the droids you're looking for. There are bugs, stupid limitations and assumptions built-in. And it's not my best coding work.
pic-conv2.pl is run while you're in a directory full of JPEG files (*.jpg). For each image, it calls the convert program from ImageMagick to produce small and medium sized images. So you'll end up with a foo-sm.jpg and foo-md.jpg.
pmi2.pl is the real workhorse. Run it after you've run pic-conv2.pl and after you've put a title.txt and description.txt file in the directory. It builds out the pages with header, footer, and navigation.
Use these at your own risk. Or not at all.
One of these days I'm gonna completely revamp how all this stuff works. Or I'll just use someone else's code. Who knows.
Posted by jzawodn at December 30, 2002 08:40 PM