diff --git a/app/Services/ImageService.php b/app/Services/ImageService.php index bb4f54a0..f10f5844 100644 --- a/app/Services/ImageService.php +++ b/app/Services/ImageService.php @@ -567,7 +567,7 @@ class ImageService $height = (int)($h * $scale); } - $img->fit($width, $height, fn($constraint) => $constraint->upsize())->encode('png')->save($pathname); + $img->fit($width, $height, fn($constraint) => $constraint->upsize())->encode('png', 60)->save($pathname); $img->destroy(); } catch (\Throwable $e) { Utils::e($e, '生成缩略图时出现异常');