Building ImageMagick with support for HEIC images
iPhones now produce .heic images. ImageMagick, which I often use for image conversion, supports these in newer versions. However its support is new enough that the version of ImageMagick in Ubuntu/Debian repositories doesn't include it.
I didn't find good instructions about building ImageMagick with .heic support included, so I'm writing some! These steps worked for both ImageMagick 6 and 7 in an Ubuntu Bionic Docker container.
apt-get install build-essential \
libde265-dev \
autoconf \
git-core \
libheif-dev
apt-get build-dep imagemagick
./configure --with-heic
make -j4
make install
ldconfig
magick --version # You should see heic on the Delegates line