Skip to content

Instantly share code, notes, and snippets.

@cupnoodle
Created December 16, 2019 17:28
Show Gist options
  • Save cupnoodle/93641208014ce9da620fc9485a994d6a to your computer and use it in GitHub Desktop.
Save cupnoodle/93641208014ce9da620fc9485a994d6a to your computer and use it in GitHub Desktop.
Install ImageMagick on Ubuntu 18.04 with HEIF / HEIC support
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install build-essential autoconf libtool git-core
sudo apt-get build-dep imagemagick libmagickcore-dev libde265 libheif
cd /usr/src/
sudo git clone https://github.com/strukturag/libde265.git
sudo git clone https://github.com/strukturag/libheif.git
cd libde265/
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install
cd /usr/src/libheif/
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install
cd /usr/src/
sudo wget https://www.imagemagick.org/download/ImageMagick.tar.gz
sudo tar xf ImageMagick.tar.gz
cd ImageMagick-7*
sudo ./configure --with-heic=yes
sudo make
sudo make install
sudo ldconfig
@hurricup
Copy link

hurricup commented Oct 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment