This is a code snippet from a picture resize script which I use on multiple domains.
On 1 particular domain, it throws the following error
All the other GD functions are accepted, any clue why this one should cause a problem?
Keith
Code:
$src_img = ImageCreateFromJPEG($img_name);
$thumb = ImageCreateTrueColor($new_width,$new_height);
ImageCopyResampled($thumb, $src_img, 0,0,0,0,($new_width),($new_height),$size[0],$size[1]);
ImageJPEG($thumb);
ImageDestroy($src_img);
ImageDestroy($thumb);
Code:
Fatal error: Call to undefined function: imagecreatefromjpg
Keith