The PEAR::Image_Transform provides a standard interface to manipulate images using different libraries WWW: http://pear.php.net/package/Image_Transform