Call to undefined function: imagecreatefromjpeg()
From: Philip J. Newman (NewmanPj_at_PhilipNZ.com)
Date: 11/28/03
- Next message: Marek Kilimajer: "Re: [PHP] Call to undefined function: imagecreatefromjpeg()"
- Previous message: Guapo: "Posting a list"
- Next in thread: Marek Kilimajer: "Re: [PHP] Call to undefined function: imagecreatefromjpeg()"
- Reply: Marek Kilimajer: "Re: [PHP] Call to undefined function: imagecreatefromjpeg()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <php-general@lists.php.net> Date: Sat, 29 Nov 2003 08:22:00 +1300
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.
- Next message: Marek Kilimajer: "Re: [PHP] Call to undefined function: imagecreatefromjpeg()"
- Previous message: Guapo: "Posting a list"
- Next in thread: Marek Kilimajer: "Re: [PHP] Call to undefined function: imagecreatefromjpeg()"
- Reply: Marek Kilimajer: "Re: [PHP] Call to undefined function: imagecreatefromjpeg()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]