Install ImageMagick with WEBP on Ubuntu 18.04

echo “deb-src http://archive.ubuntu.com/ubuntu bionic main restricted #Added by software-properties” | sudo tee a /etc/apt/sources.list

sudo apt update
sudo apt install libwebp-dev
sudo apt build-dep imagemagick
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
tar xf ImageMagick.tar.gz
cd ImageMagick-7*
./configure
make
sudo make install
sudo ldconfig /usr/local/lib

convert -version

# Check “Delegates” line for supported file types;
# You can see more detailed info about supported types by running:
identify -list format