Last active
December 16, 2022 14:46
-
-
Save codezz/998f909cad264ae0a747a7a526796aa4 to your computer and use it in GitHub Desktop.
Compile ImageMagick with WEBP and HEIC support on Ubuntu 22.04
This file contains hidden or 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
| # 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