Image_Transform_Driver_GD example
| From: | Mika Tuupola | Date: | Fri, 06 Sep 2002 18:31:29 +0000 |
| Subject: | Image_Transform_Driver_GD example | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-8890@lists.php.net to get a copy of this message | ||
A small thing, but the example in the source of
Image_Transform_Driver_GD is a bit misleading.
if($img->rotate($angle,array('autoresize'=>true,'color_mask'=>array(255,0,0)))){
rotate() method returns PEAR_Error object on failure which
is considered true by if(). Just nitpicking :)
Is anyone working on imlib driver for Image_Transform yet?
--
Mika Tuupola http://www.appelsiini.net/~tuupola/