fix: skinlib 2d preview (refactor needed)

This commit is contained in:
Steven Qiu 2025-07-26 21:38:33 +08:00
parent 57c02dd51c
commit 33d805ee82
No known key found for this signature in database
GPG Key ID: 8ACE9DCFC76F38B9

View File

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