As described in previous post, it seems that WebP will be the future of images format used in websites. Here is a quick guide how to convert other image types such as PNGs and JPGs in WebP format in Ubuntu:
Install the webp package by running the following command in terminal:
$ sudo apt install webp
Again in terminal, navigate to parent directory of image you want to convert to WebP format. Then execute the following command (example image file name ‘test-image.png’):
$ cwebp -q 60 test-image.png -o test-image.webp