- Aug 9, 2002
- 16,665
- 21
- 81
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/studiop/public_html/php/modules/coppermine/include/picmgmtbatch.inc.php
with this code:
case "gd1" :
if ($imginfo[2] == GIS_JPG)
line 173----> $src_img = imagecreatefromjpeg($src_file);
else
$src_img = imagecreatefrompng($src_file);
if (!$src_img){
$ERROR = $lang_errors['invalid_image'];
return false;
}
$dst_img = imagecreate($destWidth, $destHeight);
imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $destWidth, (int)$destHeight, $srcWidth, $srcHeight);
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);
imagedestroy($src_img);
imagedestroy($dst_img);
break;
I know you are going to say php sucks but I needed to start somewhere :/