Topic: buildindex.php (Autoviewer version of buildgallery.php)
I hacked up buildgallery.php from SimpleViewer to get the width and height of images in an Autoviewer images directory and generate gallerydata.xml. Check it out, please feel free to distribute it (after having a look at the code, I'm no PHP guru) with Autoviewer or do whatever you want with it, or not :). It wants gallerydata.xml to be there already.
(option click, right click Save As... or curl or wget this since my server doesn't send the right mime type with zip files and so if you just click it will be inlined in the browser)
p.s. Autoviewer rocks! Using it on my site: http://www.geoffsmithphoto.com/