[TIP] Managing images in Radiant

This may be an obvious suggestion to many of you, but I thought I’d
share the image management system I’ve constructed for my first Radiant
site.

I used Zenphoto, a PHP image gallery. Zenphoto automatically constructs
galleries from images dropped in its ‘albums’ directory. I set up that
directory as WebDav-enabled, so that my client could copy images
directly into the images folder. The clever thing about Zenphoto is
that by changing the image url you can request versions of that image
at any size. It renders new versions dynamically, cacheing them for
speed.

I adapted the Textile plugin to make a simple !news/thumb/photo.jpg!
request into the right Zenphoto url.

The WebDav-enabling didn’t work initially, because it was messed up by
mod_rewrite, so I enabled a different directory on another subdomain,
and used a cron job to rsync the images into the albums directory. It
works very well. And as it has turned out, the client doesn’t bother
with the gallery features – but the commenting and organising could be
useful for some.


Bruno