Created
December 16, 2019 17:28
-
-
Save cupnoodle/93641208014ce9da620fc9485a994d6a to your computer and use it in GitHub Desktop.
Install ImageMagick on Ubuntu 18.04 with HEIF / HEIC support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For ubuntu 20.04 https://gist.github.com/hurricup/e14ae5bc47705fca6b1680e7a1fb6580