How to convert png/jpeg to webp and fix delegate error if any

Here is possible error:

[email protected] [~/public_html/]# convert image.png -quality 50 image2.webp
convert: delegate failed `’cwebp’ -quiet %Q ‘%i’ -o ‘%o” @ error/delegate.c/InvokeDelegate/1928.

Supposed ImageMagick already installed then install cwebp

yum install libwebp libwebp-tools -y

Then try to convert your image again

convert image.png
Read the rest