图片处理质量默认值改为 75%
This commit is contained in:
@@ -154,7 +154,7 @@ class ImageService
|
||||
// 图片处理,跳过 ico 于 gif
|
||||
if (! in_array($extension, ['ico', 'gif'])) {
|
||||
// 图片保存质量与格式
|
||||
$quality = $configs->get(GroupConfigKey::ImageSaveQuality, 100);
|
||||
$quality = $configs->get(GroupConfigKey::ImageSaveQuality, 75);
|
||||
$format = $configs->get(GroupConfigKey::ImageSaveFormat);
|
||||
if ($quality < 100 || $format) {
|
||||
// 获取拓展名,判断是否需要转换
|
||||
|
||||
@@ -108,7 +108,7 @@ return [
|
||||
GroupConfigKey::LimitPerMonth => 999,
|
||||
GroupConfigKey::AcceptedFileSuffixes => ['jpeg', 'jpg', 'png', 'gif', 'tif', 'bmp', 'ico', 'psd', 'webp'],
|
||||
GroupConfigKey::ImageSaveFormat => '',
|
||||
GroupConfigKey::ImageSaveQuality => 100,
|
||||
GroupConfigKey::ImageSaveQuality => 75,
|
||||
GroupConfigKey::PathNamingRule => '{Y}/{m}/{d}',
|
||||
GroupConfigKey::FileNamingRule => '{uniqid}',
|
||||
GroupConfigKey::ImageCacheTtl => 2626560,
|
||||
|
||||
Reference in New Issue
Block a user