TimThumb is a simple, flexible, PHP script that resizes images.