Image srcset not resizing

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?

Are you using the standard thumb driver (i.e. gd)? Which version, see also: Kirby 3.6.0 and WebP cropping

Thanks moonwalk. I had indeed the wrong gd-settings. The webp support was set to false. Sorry i hadn´t found the topic you wre mentioning.

Have a nice day :slight_smile: