How to Install Imagemagick 7 on Debian

install imagemagick debian

ImageMagick is an open-source image manipulation command-line tool. It is used to create, edit, transform, and convert .png, .jpg, .gif and other types of images. You can use it to resize and transform images, add text overlays, draw shapes, add effects, do color edits, etc.

It's cross-platform, and it is available for most operating systems, including any Linux, Windows, macOS, and other platforms.

To install ImageMagick on Debian and Ubuntu, have to compile the application from the source code. ImageMagick RPM's are available for Redhat/CentOS 7 Linux distributions.

Here I will explain simple steps to Install ImageMagick on Debian 10 Linux distribution.

Step 1: Installing required packages for ImageMagick

To install ImageMagick from the source code, first install the compiler and related development tools.

We must install the build-essential package from the repo:

$ sudo apt update 
$ sudo apt-get install build-essential

Now proceed with downloading the ImageMagick source code.

Step 2: Downloading ImageMagick

Download the latest source code archive directly from the official ImageMagick website using wget command, type:

$ wget https://www.imagemagick.org/download/ImageMagick.tar.gz

Once the download is finished, extract its contents, and then enter the extracted directory from the archive:

$ tar xvzf ImageMagick.tar.gz
$ cd ImageMagick-7.0.10-35/

Next, continue with compiling the source code.

Step 3: Compiling ImageMagick source code

First, configure the ImageMagick make script by running the ./configure command to configure compiler environment:

$./configure

When the configure script has finished executing, run the make command to start the compilation process.

$ make

Once the compilation is completed, install the ImageMagick binary file, then configure the dynamic linker run-time bindings:

$ sudo make install 
$ sudo ldconfig /usr/local/lib

To find ImageMagick installation location by typing:

$  whereis magick
magick: /usr/local/bin/magick

Step 4: Verifying ImageMagick Installation

In the end, verify that ImageMagick 7 has been successfully installed on Debian or Ubuntu system by checking its binary version.

$ magick -version
Version: ImageMagick 7.0.10-35 Q16 x86_64 2020-11-05 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): 

Or use an alternative command:

$ identify -version
Version: ImageMagick 7.0.10-35 Q16 x86_64 2020-11-05 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): 

Uninstall ImageMagick

To removing magick (from the source code directory), run:

$ sudo make uninstall

Conclusion

In this tutorial, we have shown how to install ImageMagick 7 from the source code in Linux Debian 10 and Ubuntu.

You can use the comment section below to post your suggestions and any questions you may have regarding this article.

Slavisa Milojkovic 9:07 am

Comments

Your email address will not be published. Required fields are marked *