Thank you Martin I install new gd, reconfigure php and now is running OK. But, it was a mass to realize that shortening gifs results to loss transparency(!). So I turn them all to jpegs and use the ImageCreateFromJPG instead. My code looks like this: <? $ph='photos/'.$photo; $imgReal = imagecreatefromjpeg($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); ImageJPEG($img); header("Content-Type: {$img_type}"); echo $img; ?> -----Original Message----- From: Martin Norland [mailto:martin.norland@xxxxxxxxxx] Sent: Tuesday, June 21, 2005 4:31 PM To: PHP-mailist (PHP-mailist) Subject: Re: Shrinking gifs. . nikos wrote: > 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? [snip] > RH-9 Linux > Apache httpd-2.0.40-21.11 > PHP Version 4.3.11 > gd-1.8.4-11 gif support was removed from gd in 1.6*. It was re-added in 2.0.28. This is all due to the Unisys patent on the LZW compression that gifs use. short answer - you just don't have support for making gifs, it was a licensing issue at the time the software you're using was released/packaged. Upgrade gd. * funny, since gd stood for 'gif draw' originally. cheers, -- - Martin Norland, Sys Admin / Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php