It’s really nice to give clients a list of cards with images of their products to manage them in the panel, but of course product images are stored in high res and are only resized when needed in templates, so loading the product list right now takes 80MB
Thank you, seems like srcset isn’t a good solution for this case since in the panel performance outweighs image quality by far and setting a fixed thumbnail size in the blueprint would be more reasonable.
Do you know where the srcset part is generated in kirby so i could hardcode smaller thumbnail sizes there?
The srcset values are set in the ModelWithContent class, in the panelImage() method.
You can therefore overwrite this method in your page models. So you could even set the srcset values per page type, depending on the card size you use for each. Note that you can also set the quality in the srcset options: