mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-11-21 13:04:43 +00:00
Фикс ленивой подгрузки логотипов
This commit is contained in:
parent
ab23f8796e
commit
688ffc547e
@ -78,7 +78,7 @@ class PlaylistController extends Controller
|
||||
}
|
||||
|
||||
$logo->store();
|
||||
$body = $logo->asBase64();
|
||||
$body = $logo->raw();
|
||||
$size = $logo->size();
|
||||
$mime = $logo->mimeType();
|
||||
|
||||
|
@ -125,8 +125,17 @@ class ChannelLogo implements \Stringable
|
||||
return null;
|
||||
}
|
||||
|
||||
$mime = $this->mimeType();
|
||||
return "data:$mime;base64," . base64_encode($this->rawData);
|
||||
return "data:$this->mimeType;base64," . base64_encode($this->rawData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Возвращает сырое изображение
|
||||
*
|
||||
* @return false|string|null
|
||||
*/
|
||||
public function raw(): false|string|null
|
||||
{
|
||||
return $this->rawData;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user