Re: IMAGECOPYRESIZED(); DOESN'T WORK...

From: Date: Sun, 02 Jul 2006 01:29:56 +0000
Subject: Re: IMAGECOPYRESIZED(); DOESN'T WORK...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239064@lists.php.net to get a copy of this message
At 4:15 PM -0700 7/1/06, BBC wrote: >I thought I have typed this function correctly, and I didn't know why my >browser couldn't run these script : ><?php >$filename = 'test.jpg'; >$percent = 0.5; >header('Content-type: image/jpeg'); >list($width, $height) = getimagesize($filename); >$newwidth = $width * $percent; >$newheight = $height * $percent; >$thumb = imagecreatetruecolor($newwidth, $newheight); //1*ERROR >$source = imagecreatefromjpeg($filename); //2*ERROR >imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, >$height); //3*ERROR >imagejpeg($thumb); >?> >and the error output is : "call to undefined function" >btw, I'm using PHP 4.1.1. Is there any possible that my PHP version can not >run those script? >So, what is the best solution for my problem..? > > Best Regards >============BBC============ > **o<0>o** Did you check if you had the required "gd" extension? I believe someone already told you and how to check. tedd -- ------------------------------------------------------------------------------------ http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#239064) next »