Shrinking gifs
| From: | nikos | Date: | Tue, 21 Jun 2005 11:30:09 +0000 |
| Subject: | Shrinking gifs | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-39726@lists.php.net to get a copy of this message | ||
Hello list
I'd like to make a thumbnaile list using some gifs.
I use the following code but I got error (Call to undefined function:
imagecreatefromgif() ).
Does anybody knows what's wrong?
function viewsm($ph) {
$ph='photo/'.$ph;
echo $ph;
$imgReal = imagecreatefromgif($ph);
$x = ImagesX($imgReal);
$y = ImagesY($imgReal);
$newX=$x*0.50;
$newY=$y*0.50;
$img = ImageCreate($newX,$newY);
ImageCopyResized($img, $imgReal, 0, 0, 0, 0, $newX, $newY, $x,
$y);
return $img;
}
RH-9 Linux
Apache httpd-2.0.40-21.11
PHP Version 4.3.11
gd-1.8.4-11
Thanks
Nikos