$row = mysql_fetch_array($result);
$src1 = $row['file_name'];
$targ_w = $targ_h = 350;
$jpeg_quality = 90;
$img_r = imagecreatefromjpeg($src1);
$dst_r = ImageCreateTrueColor( $targ_w, $targ_h );
imagecopyresampled($dst_r,$img_r,0,0,$_POST['x'],$_POST['y'],
$targ_w,$targ_h,$_POST['w'],$_POST['h']);
header('Content-type: image/jpg');
imagejpeg($dst_r,null,$jpeg_quality);
如何为此示例保存文件? 这是源文件名,$ src1 = $ row ['file_name']; 我只能预览文件,但不能保存。