Re: Call to undefined function: imagecreatefromjpeg()
| From: | Philip J. Newman | Date: | Fri, 28 Nov 2003 19:31:34 +0000 |
| Subject: | Re: Call to undefined function: imagecreatefromjpeg() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171299@lists.php.net to get a copy of this message | ||
... just what i was thinking, i'll get back to them and complain.
Thanks
----- Original Message -----
From: "Marek Kilimajer" <kilimajer@webglobe.sk>
To: <NewmanPj@PhilipNZ.com>
Cc: <php-general@lists.php.net>
Sent: Saturday, November 29, 2003 8:29 AM
Subject: Re: [PHP] Call to undefined function: imagecreatefromjpeg()
> 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.
> >
> >
>