I am trying to implement the new webP Support into my image output. I used the settings like described in the guide:
<picture>
<source srcset="<?= $image->srcset() ?>" type="image/webp">
<img src="<?= $image->url() ?>" alt="<?= $image->alt() ?>" >
</picture>
and i added a default srcset in my config file:
'thumbs' => [
'srcsets' => [
'default' => [
'800w' => ['width' => 800, 'format' => 'webp'],
'1024w' => ['width' => 1024, 'format' => 'webp'],
'1440w' => ['width' => 1440, 'format' => 'webp'],
'2048w' => ['width' => 2048, 'format' => 'webp']
]
]
],
The srcset is set correctly and kirby added the correct image in the media folder. However: Every generated picture has the same pixel values. I thought when adding sourcesets like this with a corresponding width that kirby will create images with that dimensions.
Am i missing something or do i just think wrong?