img2webp command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
img2webp: command not found
or when using sudo you get the following error message
sudo: img2webp: command not found
Solutions to img2webp: command not found
How To Fix img2webp: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu img2webp is provided by webp package.
webp is:
Image Compression format, based on the VP8 codec. WebP uses the modern VP8 compression format to deliver efficient compression of images for the web. More than 30% extra gain over optimized JPEG, for same quality, is not unusual.
To fix this problem, we can install more using the command below.
sudo apt-get -y install webp
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install webp.
sudo apt -y install webp
Or if you have aptitude installed you can use the following command.
sudo aptitude install webp
Summary
In this tutorial we learn how to fix img2webp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.