我尝试了什么:
$url = str_replace(' ', '%20', trim($url));
$percent = 1.0;
$imagethumbsize = 200;
header('Content-type: image/jpeg');
list($width, $height) = getimagesize($url);
$new_width = $width * $percent;
$new_height = $height * $percent;
$image_p = imagecreatetruecolor($imagethumbsize , $imagethumbsize);
$image = imagecreatefromjpeg($url);
imagecopyresampled($image_p, $image, -($new_width/2) + ($imagethumbsize/2), -($new_height/2) + ($imagethumbsize/2), 0, 0, $new_width , $new_width , $width, $height);
$hel=imagejpeg($image_p,"E:".DS."xampp".DS."htdocs".DS."opg-uat".DS."img".DS."c".DS , 100);
我得到的错误:“无法保存此图像,因为它包含错误”有人帮助请。