First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack.
A Kohana module that allows you to quickly create resized / cropped images directly through url parameters. Modified images are cached after the initial request and served up thereafter to help reduce server strain.