How to install latest ImageMagick on Debian (or Ubuntu, Mint…)

If you need the latest version of ImageMagick, it’s quite simple to compile it from source.

First step – install necessary dependencies and build tools. You may already have some of them, if this is not the first time you’re compiling something from source on your system.

sudo apt-get install build-essential libglib2.0-dev libfontconfig1-dev libpng12-dev zlib1g-dev libtiff5-dev libfreetype6-dev libexif-dev

(Depending on your operating system version you may need to replace libtiff5-dev with libtiff4-dev, if the installer says libtiff5-dev is not found.)

Download and extract the source code:

mkdir im_source
cd im_source
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
tar xf ImageMagick.tar.gz
cd ImageMagick*

Then the usual (running make command will take some time, don’t panic):

./configure --prefix=/usr
make
sudo make install

That’s it! Now you have the latest and greatest version of ImageMagick installed 🙂

You can verify it by running this command:

convert -version

Leave a Reply

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