getThumb with mode crop vs webp

When i use

$avatar->getThumb(240, 240, ['mode' => 'crop'])

on partial, and file uploaded has .webp format, probably ‘crop’ won’t work correctly, because it not resizes image to desired width and cropped from center, but cropped from 0,0 to 240,240 from original image, what means, avatar is not full but just small part of it.

Hey @snipi

There is a bug with this at the moment. A fix is coming in v4.1.5. The workaround is to use mode cover instead.