问题描述
我在laravel项目中实施了图像干预。我需要为图像提供的实际尺寸为370 *315。当我上载具有宽高比的图像时,尺寸非常合适,但是即使我给出了100,图像的质量也非常差。
我尝试过
$originalImage=Intervention::make(public_path('uploads/360/original').'/'. $filenameImage);
$thumbHeight=315;
$thumbWidth=370;
//for thumbnail images
$thumbImg = $originalImage;
$thumbImg->resize( $thumbHeight,$thumbWidth,function ($constraint) {
$constraint->aspectRatio();
})->save(public_path('uploads/360/thumbnail').'/'. $filenameImage,100);
但是图像质量始终非常低
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)