WordPress webp images

WebP is a modern image format that provides excellent compression without loss of image on the web.

In this post I will share how to make our wordpress blog work with this format for better optimization with the help of nginx and webp.

Wordpress webp images


Install webp

apt-get install webp

webp is needed by our script, which will convert all the images jpg/png in webp.

Webp script

The script looks like this: