How to convert jpg and png images into webp

Business Owners in this time are using webp images to speed up their website. It is an image format developed by Google which reduces image size without decreasing image quality. You should try converting your normal images into webp images to improve your site performance.

Here are some steps on how you can convert your images into webp. I suppose you’re gonna do it on Ubuntu 16.04 with Nginx server.

Install required libraries

Install it by commands below:

Convert images

Convert single image

Here -q and -o are command line parameters where -q denotes quality of output image and -o denotes output image file name.

Convert multiple images

Above code finds all the files with .png extension in the current directory and creates .webp images for all of them.


Hope you find some value in the post and able to improve your site performance.

Let me know if you face any issues.


Leave a Reply

Your email address will not be published. Required fields are marked *