Primage is a PHP library that works like a proxy for resizing and watermarking images in real time. It has support for caching the images it processes.
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.