#11 - optimize images and preload

This commit is contained in:
isUnknown 2024-12-17 11:27:02 +01:00
parent b391075efd
commit f158f99fc5
2 changed files with 17 additions and 2 deletions

View file

@ -3,7 +3,11 @@
function getFileData($file) {
$data = [
'modified' => $file->modified('YYYY-MM-dd'),
'url' => $file->url(),
'url' => $file->thumb([
'width' => 1000,
'quality' => 80,
'format' => 'webp'
])->url(),
'uuid' => (string) $file->uuid(),
'name' => $file->filename(),
'label' => (string) $file->label(),