I’ve got a Builder Field image block which uses srcset and sizes. The preview for this block can’t be generated with the sizes present when I remove the sizes the preview shows as aspected. (Obviously, I can make a snippet for preview only.) When using a textarea and a Kirby image tag with the srcset and sizes it does work.
Yes, I’ve got those sizes from my config: sizes="<?= $kirby->option('srcset-sizes.default') ?>".
So I can call them with kirby() also? Well, that’s no probs.