Skip to content

Instantly share code, notes, and snippets.

@apoorv-2204
Created February 25, 2025 06:27
Show Gist options
  • Save apoorv-2204/2e3c415edb2a08968b4850b7fdf2b7bf to your computer and use it in GitHub Desktop.
Save apoorv-2204/2e3c415edb2a08968b4850b7fdf2b7bf to your computer and use it in GitHub Desktop.
Install script for ImageMagick 7 on linux
sudo apt update
sudo apt install -y build-essential wget curl autoconf pkg-config libpng-dev libjpeg-dev libtiff-dev libfontconfig1-dev \
libx11-dev libxext-dev libfreetype6-dev libxml2-dev liblcms2-dev liblqr-1-0-dev libfftw3-dev
wget https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-44.tar.gz
tar xzf 7.1.1-44.tar.gz
cd ImageMagick-7.1.1-44
./configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --with-xml=yes
make -j$(nproc)
sudo make install
sudo ldconfig /usr/local/lib/
magick --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment