fix: avatar (refactor needed)
This commit is contained in:
parent
1b3b020d52
commit
2e39fbce77
|
|
@ -146,7 +146,8 @@ class TextureController extends Controller
|
||||||
|
|
||||||
$disk = Storage::disk('textures');
|
$disk = Storage::disk('textures');
|
||||||
if (is_null($texture) || $disk->missing($texture->hash)) {
|
if (is_null($texture) || $disk->missing($texture->hash)) {
|
||||||
return Image::make(resource_path("misc/textures/avatar$mode.png"))
|
// TODO: refactor
|
||||||
|
return \Intervention\Image\ImageManagerStatic::configure(['driver' => 'gd'])->make(resource_path("misc/textures/avatar$mode.png"))
|
||||||
->resize($size, $size)
|
->resize($size, $size)
|
||||||
->response($usePNG ? 'png' : 'webp', 100);
|
->response($usePNG ? 'png' : 'webp', 100);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user