Kirby 3.6.0 and WebP cropping

Thanks for the 3.6 update!

I am trying to crop and convert an image to webp. The code below returns an uncropped webp image.

Switching format to jpg works as expected, but I would like to use webp. What am I doing wrong?

<?
	$image = $page->images()->first();
	
	$options = [
	  'crop'       => true,
	  'width'      => 300,
	  'height'     => 150,
	  'format' => 'webp'
	];
		  
    $image->thumb($options) //result is not cropped
?>

What do you get when you output

<?php var_dump(gd_info()) ?>

You should see an array like this:

array (size=14)
  'GD Version' => string '2.3.3' (length=5)
  'FreeType Support' => boolean true
  'FreeType Linkage' => string 'with freetype' (length=13)
  'GIF Read Support' => boolean true
  'GIF Create Support' => boolean true
  'JPEG Support' => boolean true
  'PNG Support' => boolean true
  'WBMP Support' => boolean true
  'XPM Support' => boolean true
  'XBM Support' => boolean true
  'WebP Support' => boolean true
  'BMP Support' => boolean true
  'TGA Read Support' => boolean true
  'JIS-mapped Japanese Font Support' => boolean false

My GD Version is 2.1.0. My hosting providers says I need to upgrade to PHP 8.0 for GD Version 2.3.3.

I switched the driver to “im” in the config file and it is now working as expected.

Thank you.