
04/25/2025
Install ImageMagick on a server
1 minute read
ImageMagick is a pretty neat image convert tool, with support for animated gif. It is well integrated to the Drupal ecosystem. Here is how to install it on modern systems.
1. Select the wanted version
Choose the tar.gz
version you want from the following list and copy the URL
2. Download and extract the selected package
Download the package from ImageMagick website and extract it to the ImageMagick-7
folder.
cd ~
mkdir imagemagick
cd imagemagick
wget https://download.imagemagick.org/archive/releases/ImageMagick-7.1.1-15.tar.xz
tar -xvzf ImageMagick-7.1.1-15.tar.xz
mv ImageMagick-7.1.1-15 ImageMagick-7
cd ImageMagick-7
3. Install the dependencies
Make sure that you have [https://github.com/ImageMagick/ImageMagick/discussions/6682#discussioncomment-9066741](libtool and gcc installed). To do so, use the following command:
On AlmaLinux : sudo yum install libtool gcc-c++
On Ubuntu : sudo apt install libtool gcc-c++
4. Install ImageMagick
Build and install ImageMagick with the following commands:
./configure
sudo make install
make check
5. Validate the installation
Run the following command to make sure that ImageMagick is now available:
which convert