Apache::App::Gallery::Simple is an elegant and fast filesystem-based image galleries.
< Location /photos >
PerlSetVar GalleryRoot /vacation/images
PerlSetVar GalleryName "My Vacation Photos"
< /Location >
< Location /~hawkeye/photos >
PerlSetVar GalleryRoot /images
PerlSetVar GalleryName "Hawkeye's Pictures"
PerlSetVar ThumbWidth 250
< /Location >
Gallery::Simple creates navigable thumbnail galleries from directories with images on your web server. Gallery::Simple is completely configurable via a simple template system, allows for image captions as well as multimedia support, and also allows you to specify multiple languages for your templates and captions. The rest of this document is just the details.
Gallery::Simple creates an image gallery (complete with thumbnails and navigation links) from a directory or directory hierarchy on a web server. Simply upload images to a directory and the work is done. You can add captions to your images or other media (e.g., movies; see "ALTERNATIVE MEDIA") and the entire Gallery::Simple application is customizable using a simple template system (see "TEMPLATES").
I wanted an image gallery that was as easy to setup and use as Apache::Album but that offered a little more flexibility with captions, style/layout (including CSS or other customizations).
Some effort has been made to retain some of the Apache::Album configuration directives, if not in name, at least in spirit. You should also be able to use existing thumbnail directories if you're migrating from Apache::Album.
Using Gallery::Simple is, well, simple. There are no configuration files or anything of that sort (other than the Apache directives described in "OPTIONS"). All you have to do is install it, add something like the Location block shown above in "SYNOPSIS" section, and the path specified in GalleryRoot has suddenly become an image gallery.
There are a few features that are not implemented that Apache::Album does implement, namely:
- browser-based uploads and gallery configuration
- image sorting
- variable image size viewing
Gallery::Simple does do a couple of things well, however. It allows you to put captions to your images. It allows you to link to an alternative media source in the image page, which means you can also upload movies and other such stuff into your gallery. It allows template sets and caption files for multiple languages, meaning web visitors who prefer to see your site in Spanish may do so, while the German readers can see German galleries.
Gallery::Simple handles virtual hosted domains and even handles "tilde-dirs" or directories using Apache's UserDir directive in the form of http://www.foo.dom/~bar/baz.
Further, Gallery::Simple also allows you to completely customize the HTML returned for a particular gallery and an image page (you could even customize it to return XML if you wanted). You can add style sheets, alter (even replace) the layout so that it integrates cleanly with your existing web site.