为什么将下边的代码放入循环以后
for ($i =1; $i<=9;$i++)
{
//echo $i;
$canvas =imagecreatetruecolor($crop_width, $crop_height);
$current_image =@imagecreatefromjpeg($tmpfile);
imagecopy($canvas, $current_image, 0, 0, $left, $top, $current_width, $current_height);
imagejpeg($canvas, $tmpfile, 85);
//header('Content-Type: image/jpeg');
// imagejpeg($canvas, 100);
//echo $tmpfile;
$targetfile=$i.".jpg";
$s->upload("upload",$targetfile,$tmpfile);
$imgurl=$s->getUrl("upload",$targetfile);
echo "<img src='".$imgurl."?".time()."'/>";
imagedestroy($canvas);
imagedestroy($current_image);
$left+=1;
$top+=1;
//echo $left."<br/>";
}
会出现像http://
1.lise.sinaapp.com/file_upload.html这样的错误...
产生的图片为什么有黑边呢