I recently dug out an old hard drive full of photos from a trip to Japan from a few years with some friends. They were taken with fairly good point and shoot cameras at the time. But the resolution and naming of it all were mixed. So I needed to batch resize all the images and sanitise the filenames.
First I used detox to santise all the file and directory names
$ detox -r Japan/
Then i used find and imagemagick's mogrify command to resize the images.
$ find Japan/ -type f -exec mogrify -quality 90% -resize 800x600">" {} \;
There are a few options you can give to mogrify but the above suited me the most, I didn't have to think too much about it on what dimenions to use, whether to up or downscale etc... run the above command and then wait a while. This dropped the size of the original archive from 2gbytes to about 210mbytes.
Next, I used a fairly old python script called curator, which can be found at http://furius.ca/curator/, to generate a static gallery. I think with a few hundred photos ikiwiki just falls apart.
$ cd Japan
$ curator
Then again, wait a while... this added about 40mbytes of data. Here's the gallery of my Japan trip. This might disappear cause its not in the repo since its a bit big!.