XML::Twig is an XML transformation module. It can be used to process huge documents while still being in tree mode; is not bound by DOM or SAX, so it is very Perlish and offers a very comprehensive set of methods; is simple to use; and DWIMs as much as possible. What it doesn't offer: full SAX support (it can export SAX, but only reads XML); full XPath support (unless you use XML::Twig::XPath); nor DOM support. It is also a big module, and with over 500 methods available it can be a bit overwhelming. A good starting point is the online tutorial.
I had a bunch of scripts that did something similar, but album is much more professional and clean:
- one script does it all,
- it relies on convert and which usually work on most *nix systems, as opposed to ImageMagick which I never managed to compile,
- the file structure it generates is very neat and unostrusive,
- the source is quite easy to read (and tweak, see a slightly modified output (http://www.xmltwig.com/mirod/pict/antonio))
Overall album strikes the perfect balance between simplicity (if I just drop the files from my digital camera in a directory they can be neatly online seconds later) and customization (I can come back later and add captions very easily)
Kudos to Dave