Fedora ImageMagick with HEIC support

I'm using ImageMagick's convert command to convert my pictures on Fedora Linux.

Unfortunately there is no support for Apple's new HEIC (HEIF) format out of the box.

mogrify: no decode delegate for this image format `HEIC'

The only way to get around this problem is to build ImageMagick from source with HEIF support.

For this I have created these build instructions (tested on Fedora release 30 x86_64):

cd /tmp

# Remove current version of ImageMagick
sudo dnf remove ImageMagick

# Install dependencies
sudo dnf install libheif libheif-devel libjpeg libjpeg-devel

# Build
git clone https://github.com/ImageMagick/ImageMagick.git
cd ./ImageMagick

./configure --with-heic --with-jpeg

sudo make -j4

sudo make install

sudo ldconfig

You're now able to convert your iPhone photo library.

mogrify -format jpg *.HEIC