Shrinking gifs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux