Re: Call to undefined function: imagecreatefromjpeg()
| From: | Marek Kilimajer | Date: | Fri, 28 Nov 2003 19:29:54 +0000 |
| Subject: | Re: Call to undefined function: imagecreatefromjpeg() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171297@lists.php.net to get a copy of this message | ||
Philip J. Newman wrote:
http://www.php.net/manual/en/function.imagecreatefromjpeg.php After using this code for some time it suddenly returns ...It's not suddenly, someone must have recompiled php without gd/jpg support.
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.