Library image error intervention Webp format is not supported by PHP installation Laravel 5.8

i’m using (string) Image::make($ image)->encode(‘webp’, 75); in my function getImage, that for its documentation says that it serves to return image data encoded with WebP this function I occupy it when I show my image but I get the following error
controller in laravel function view image

function the upload image

the error