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

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:


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
Copyright: © 1999-2020 ImageMagick Studio LLC
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
Copyright: © 1999-2020 ImageMagick Studio LLC
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): 

Uninstall ImageMagick

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

$ sudo make uninstall


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.

4 Comments... add one

  1. I highly recommend ImageMagick Easy Install (IMEI):

    It tracks down all the source/development libraries needed for the additional ImageMagick "delegates" (image formats in IM-speak). Plus, it can also incrementally update your local install from newer source after the initial installation.

  2. Thanks Slavisa for this article.
    I'm a newbie in Linux. Under which folder is it best to perform all this?
    under /tmp ?
    Can we delete the install package afterward?

    • Hello Pascalli, I'm glad you liked the tutorial.
      You can perform it in any folder you like and can write to. /tmp is fine. When you download and extract the file archive, you will extract the ImageMagick source code folder too:
      $ tar xvzf ImageMagick.tar.gz
      $ cd ImageMagick-7.0.10-35/

      You can delete the archive file immediately after you have extracted the source code folder:
      $ rm ImageMagick.tar.gz

      To uninstall the application from the system, you will need to enter the ImageMagick directory again ($ cd ImageMagick-7.0.10-35/) and type:

      $ sudo make uninstall

      Than you are free to remove the source code folder as well:

      $ rm -Rf ImageMagick-7.0.10-35/


Leave a Comment