Skip to content

Instantly share code, notes, and snippets.

@Lupeipei
Last active August 10, 2020 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lupeipei/67351921b358cdc543e9a23e69b06fba to your computer and use it in GitHub Desktop.
Save Lupeipei/67351921b358cdc543e9a23e69b06fba to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -ex
apt install -y libwebp-dev libopenjp2-7-dev librsvg2-dev libx265-dev libde265-dev automake
mkdir ~/build
cd ~/build
git clone --branch v1.6.2 https://github.com/strukturag/libheif
cd libheif
./autogen.sh
./configure
make
make install
cd ~/build
git clone --branch 7.0.10-25 https://github.com/ImageMagick/ImageMagick.git ImageMagick
cd ImageMagick
./configure --with-heic=yes
make
make install
export LD_LIBRARY_PATH=/usr/local/lib
cd
rm -rf ~/build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment