portfolio : optimize thumbnail weight
All checks were successful
Deploy / Deploy to Production (push) Successful in 22s

This commit is contained in:
isUnknown 2026-04-03 12:04:52 +02:00
parent 3c92903518
commit e2939da0ee

View file

@ -11,7 +11,7 @@ $specificData = [
'slug' => $project->slug(), 'slug' => $project->slug(),
'catchPhrase' => $project->catchPhrase()->value(), 'catchPhrase' => $project->catchPhrase()->value(),
'description' => $project->description()->value(), 'description' => $project->description()->value(),
'thumbnail' => $project->thumbnail()->toFile()?->url(), 'thumbnail' => $project->thumbnail()->toFile()?->resize(160, null, 80)->url(),
'imagesGallery' => $project->imagesGallery()->toFiles()->map(fn($f) => [ 'imagesGallery' => $project->imagesGallery()->toFiles()->map(fn($f) => [
'src' => $f->url(), 'src' => $f->url(),
'srcset' => $f->srcset('gallery'), 'srcset' => $f->srcset('gallery'),