picostitch
crafting (and) JavaScript

How to Convert Images to webp (and use them)

A while ago I optimized some images for the site you are looking at, by using the webp format because I had forgotten to do that, and PageSpeed Insights suggested to do so.
I forgot how to do that, so I am writing it down now. Read on if you also want to know how to convert any kind of image to webp and embed it in your site.

Install the Executable

I am using a docker setup, so I added the following line to my Dockerfile