Converting Images to WebP From Terminal

Are you using a modern image format for your website image?

Shinichi Okada
mkdir Awesome
Published in
3 min readFeb 16, 2022

--

Image by Text To Photo Editor. Background photo by Héctor J. Rivas on Unsplash

While optimizing Flowbite-Svelte website, Ligthhouse suggested to use WebP files instead of PNG and JPG files. So I created a Bash Script called Consize (CONvert and reSIZE).

After optimizing the images and adding meta tags, I got almost perfect scores.

--

--

Shinichi Okada
mkdir Awesome

A programmer and technology enthusiast with a passion for sharing my knowledge and experience. https://codewithshin.com