问题描述
我在 Laravel 中使用 laravel intervention image 调整图像大小,但是当我尝试使用 Image::make 初始化时,我收到了这个错误
Intervention\Image\Exception\NotReadableException 无法从 给定网址
这是我的代码
if ($logo != null){
$largelogoUrl = $logo->google_url;
$largelogo = Image::make($largelogoUrl);
$smalllogoUrl = $logo->thumbnail_url;
$smalllogo = Image::make($smalllogoUrl);
}
使用 $largelogo 一切正常,没有问题,它也是来自 google 云存储链接,当我进行调试时,错误消息出现在 $smalllogo = Image::make($smalllogo);
行
$largelogo = https://lh3.googleusercontent.com/A_b-UKp70TuAFetX6dQcaGmJcl32chMiXFDX8oYd6w_Hu1iR13LJfhs99OJyfFQX2UpRPzdva1I1-2L1=s0
$smalllogo = https://lh3.googleusercontent.com/p/AF1QipNF9Au8QW_vkefTfsrRlmR4IOf87EfwDgtvG1w_=s300
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)