The One and the Many

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 \
apt-get build-dep imagemagick
./configure --with-heic
make -j4
make install
magick --version # You should see heic on the Delegates line


Posted by Boris K. at
For the build-deb to work I also needed to click on "Source code" in in `sudo software-properties-gtk` (`software-properties-kde` under Kubuntu). Also note, that `libheif-dev` is only available in *ubuntu 18.04+.