I'm trying to simply resize an image using the following PEAR script :
<?php
require_once 'Image/Transform.php';
$i =& Image_Transform::factory('');
$i->load('pic.gif');
$i->fit(100,100);
$i->save('resized.gif', 'gif');
?>
I know the PEAR install is working correctly. I installed the Image_Transform package, and "list pear" shows the package installed. I also have installed php-GD. When I run the script, I get the following error:
Warning: imagegif() [function.imagegif]: Unable to open 'resized.gif' for writing in /usr/share/pear/Image/Transform/Driver/GD.php on line 464
Any ideas are greatly appreciated.