I'm a huge fan of Imagine, it's an Image manipulation library for PHP 5.3 inspired by Python's PIL and other image libraries.
It has drivers for GD, Imagick, and GMagick so you should be good to just use the GD implementation.
Here's a nice presentation and supporting documentation, definitely worth a look.