$srcW=ImageSX($im);
$srcH=ImageSY($im);
if(file_exists($config_prefix.$bigPic)) {
continue;
}
$to=imagecreatetruecolor($width,$height);
@imagecopyresampled($to,$im,0,0,0,0,$width,$height,$srcW,$srcH);
//保存文件
switch($data[2]){
case '1':ImageGIF($to,$config_prefix.$bigPic, $imgQuality); break;
case '2':ImageJPEG($to,$config_prefix.$bigPic, $imgQuality); break;
case '3':ImagePNG($to,$config_prefix.$bigPic, $imgQuality); break;
default:ImageJPEG($to,$config_prefix.$bigPic, $imgQuality); break;
// ImageJpeg($ni,$srcFile, $imgQuality);
}
imagedestroy($im);
imagedestroy($to);
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in D:\webserver\she\wwwroot\bbs\include\attachment.func.php on line 138
Warning: imagejpeg(): supplied argument is not a valid Image resource in D:\webserver\she\wwwroot\bbs\include\attachment.func.php on line 146
Warning: imagedestroy(): supplied argument is not a valid Image resource in D:\webserver\she\wwwroot\bbs\include\attachment.func.php on line 153
說明是这3个地方有问题 |