If the images have a layout of cards, the previews generated are 1408 pixels in width. Thats’s way too big for the tiny size they are displayed in.
I tried to change the size with a custom pageMethod
'preview' => function()
{
return $this->images->first()->resize(300);
},
and in my section:
image:
query: page.preview
cover: true
the previews are not shown
without the resize it works:
'preview' => function()
{
return $this->images->first();
},
So two questions:
-
Why is the resize not working in the page method?
resize
returns just another image object, or does it not? -
Why are preview images so large and are there other methods to make them smaller?
Thanks!