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