Image Gallery from a Directory of Images

Here is a nice little script that takes a directory full of images, creates a thumbnail of said image and saves it to a directory, and then displays the gallery of images.  I didn’t create this code but found a guy by the name of David Walsh who took code...