fix avatar (refactor needed) (#666)

This commit is contained in:
SANYE-YA 2025-08-07 05:08:13 +08:00 committed by GitHub
parent 2e39fbce77
commit 33055ecbf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,8 @@ class TextureController extends Controller
$lastModified = Carbon::createFromTimestamp($disk->lastModified($hash));
return Image::make($image)
// TODO: refactor
return \Intervention\Image\ImageManagerStatic::configure(['driver' => 'gd'])->make($image)
->resize($size, $size)
->response($usePNG ? 'png' : 'webp', 100)
->setLastModified($lastModified);