Call to undefined function: imagecreatefromjpeg()
| From: | Philip J. Newman | Date: | Fri, 28 Nov 2003 19:22:00 +0000 |
| Subject: | Call to undefined function: imagecreatefromjpeg() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171296@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/function.imagecreatefromjpeg.php
After using this code for some time it suddenly returns ...
Fatal error: Call to undefined function: imagecreatefromjpeg() in
/home/crushme/public_html/includes/inc_members.php on line 564
<?Php
// SNIP
$quality="70"; // JPEG Image Quality (0-95 Higher Value == Better)
// Resize Create the Output Image (Do Not Disturb this part)
$src_img = imagecreatefromjpeg("$src_img");
$dst_img = imagecreatetruecolor($dest_width,$dest_height);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, $dest_height, $src_width,
$src_height);
imageinterlace($dst_img, 1);
imagejpeg($dst_img, "$dest_file", $quality);
imagedestroy($src_img);
imagedestroy($dst_img);
// SNIP
?>
Is this the server or code that needs to be changed.