I wrote a single file PHP Image Resize script that allows you to generate thumbnail images on demand, and thought I would share it with everyone. It actually generates a new jpg image on demand in the correct size, caches it for later use, and displays it. Its very helpful when creating an image gallery, also supports cropping!

Checkout PHP Image Resize