perf: 优化图片压缩

This commit is contained in:
kuaifan
2024-10-23 14:56:09 +08:00
parent f9ceb3e2d8
commit 7445ac3a39
11 changed files with 92 additions and 53 deletions

View File

@@ -197,7 +197,8 @@ class IndexController extends InvokeController
"file" => Request::file('file'),
"type" => 'publish',
"path" => $publishPath,
"fileName" => true
"fileName" => true,
"quality" => 100
]);
if (Base::isSuccess($res)) {
file_put_contents($latestFile, $publishVersion);