ok still no luck!
some body help me out please
thanks alot! the program is installed and i did the mod 3 times making sure i had done teh steps and all was done
here's the script for thsoe whoe have not seen it...
PHP Code:
<?php
function createthumb($name,$filename,$new_w,$new_h,$quality){
$system=explode(".",$name);
if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);}// LINE 9
if (preg_match("/png/",$system[1])){$src_img=imagecreatefrompng($name);}
$old_x=imageSX($src_img);
$old_y=imageSY($src_img);
if ($old_x > $old_y) {
$thumb_w=$new_w;
$thumb_h=$old_y*($new_h/$old_x);
}
if ($old_x < $old_y) {
$thumb_w=$old_x*($new_w/$old_y);
$thumb_h=$new_h;
}
if ($old_x == $old_y) {
$thumb_w=$new_w;
$thumb_h=$new_h;
}
$dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);
imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);
if (preg_match("/png/",$system[1])){
@header ("Content-type: image/png");
@imagepng($dst_img,$filename);
} else {
@header ("Content-type: image/jpeg");
@imagejpeg($dst_img,$filename,$quality);
}
imagedestroy($dst_img);
imagedestroy($src_img);
}
?>
line 9 is throwing this error
PHP Code:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/tunercar/public_html/forums/gdresize.php on line 9