Forked from hurricup/install_imagemagic_with_heic.sh
Created
February 27, 2024 10:00
-
-
Save haseeb2k9/18377d3d39fa32003def6f7b4e9bf10f to your computer and use it in GitHub Desktop.
How to install ImageMagick 7.1.0-54 with HEIC and WEBP support on Ubuntu 20.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
| # inspired by https://gist.github.com/rjnienaber/af47fccb8410926ba7ea35f96c3b87fd | |
| # remove bundled ImageMagick | |
| sudo apt remove imagemagick -y | |
| # install base dependencies | |
| sudo apt-get install -y \ | |
| libtiff-dev \ | |
| libjpeg-dev \ | |
| libpango1.0-dev \ | |
| libwebp-dev \ | |
| libwmf-dev \ | |
| libde265-dev \ | |
| libghc-bzlib-dev \ | |
| libheif-dev \ | |
| libraw-dev \ | |
| libdjvulibre-dev \ | |
| libgs-dev \ | |
| libgraphviz-dev \ | |
| liblqr-1-0-dev \ | |
| libopenexr-dev \ | |
| liblzma-dev \ | |
| libzip-dev \ | |
| libzstd-dev \ | |
| liblcms2-dev \ | |
| libjbig-dev | |
| # installing | |
| git clone --depth 1 https://github.com/ImageMagick/ImageMagick.git | |
| cd ImageMagick | |
| # options omitted from the configure | |
| # --with-autotrace=yes \ # requires autotrace from the github, looks abandoned | |
| # --with-dps=yes \ # ? | |
| # --with-flif=yes \ # ? | |
| # --with-fpx=yes \ # ? | |
| # --with-jxl=yes \ # requires libjxl from the github | |
| # --with-ltdl=no \ # ? | |
| ./configure \ | |
| --with-bzlib=yes \ | |
| --with-djvu=yes \ | |
| --with-fftw=yes \ | |
| --with-fontconfig=yes \ | |
| --with-freetype=yes \ | |
| --with-gslib=yes \ | |
| --with-gvc=yes \ | |
| --with-heic=yes \ | |
| --with-jbig=yes \ | |
| --with-jpeg=yes \ | |
| --with-lcms=yes \ | |
| --with-lqr=yes \ | |
| --with-lzma=yes \ | |
| --with-magick-plus-plus=yes \ | |
| --with-openexr=yes \ | |
| --with-openjp2=yes \ | |
| --with-pango=yes \ | |
| --with-perl=yes \ | |
| --with-png=yes \ | |
| --with-raqm=yes \ | |
| --with-raw=yes \ | |
| --with-rsvg=yes \ | |
| --with-tiff=yes \ | |
| --with-webp=yes \ | |
| --with-wmf=yes \ | |
| --with-x=yes \ | |
| --with-xml=yes \ | |
| --with-zip=yes \ | |
| --with-zlib=yes \ | |
| --with-zstd=yes | |
| make -j 8 | |
| sudo make install | |
| sudo ldconfig /usr/local/lib | |
| # check | |
| identify --version | |
| # Version: ImageMagick 7.1.0-10 Q16-HDRI x86_64 2021-10-03 https://imagemagick.org | |
| # Copyright: (C) 1999-2021 ImageMagick Studio LLC | |
| # License: https://imagemagick.org/script/license.php | |
| # Features: Cipher DPC HDRI OpenMP(4.5) | |
| # Delegates (built-in): fontconfig freetype heic jp2 png webp x xml zlib | |
| # Compiler: gcc (10.3) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment