sudo apt-get install libwebp-dev libde265-dev git clone https://github.com/strukturag/libheif.git cd libheif sudo apt-get install pkg-config libtool ./autogen.sh ./configure make sudo make install cd .. git clone https://github.com/ImageMagick/ImageMagick.git cd ImageMagick ./configure --with-heic=yes --with-webp=yes --with-png --with-raw --with-lzma --with-tiff --with-jpeg make sudo make install sudo ldconfig /usr/local/lib identify --version