Skip to content

Instantly share code, notes, and snippets.

@codezz
Last active December 16, 2022 14:46
Show Gist options
  • Select an option

  • Save codezz/998f909cad264ae0a747a7a526796aa4 to your computer and use it in GitHub Desktop.

Select an option

Save codezz/998f909cad264ae0a747a7a526796aa4 to your computer and use it in GitHub Desktop.
Compile ImageMagick with WEBP and HEIC support on Ubuntu 22.04
# install base dependencies
sudo apt-get install libwebp-dev libde265-dev
cd /usr/src
# install library for reading heif/heic files
wget https://github.com/strukturag/libheif/releases/download/v1.14.0/libheif-1.14.0.tar.gz
cd libheif-1.14.0
./autogen.sh
./configure
make
make install
#ImageMagick
cd /usr/src
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar -xvf ImageMagick.tar.gz
cd ImageMagick-7.1.0-54/
./configure --with-heic=yes --with-webp=yes --with-jpeg=yes --with-png=yes
make
make install
ldconfig /usr/local/lib
apt install php-imagick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment