09 November 2025

How to install ImageMagick on Ubuntu?

How to install ImageMagick?

download ImageMagick.tar.gz from imagemagick.org or a mirror and verify the distribution against its message digest.

Next configure and compile ImageMagick. Note the pkg-config script is required so that ImageMagick can find certain optional delegate libraries on your system. To configure, type:

cd ImageMagick-7.1.2  
apt-get install libconfig-dev  
apt install libltdl-dev  
./configure --with-modules  
make  

If build fails, try gmake instead.

If ImageMagick configured and compiled without complaint, you are ready to install it on your system. Administrator privileges are required to install. To install, type

make install  

You may need to configure the dynamic linker run-time bindings:

sudo ldconfig /usr/local/lib  

Finally, verify the ImageMagick install worked properly, type

make check  

Ghostscript and Freetype are prerequisites, otherwise certain unit tests that render text and the EPS, PS, and PDF formats will likely fail. These unit tests require the open security policy to pass.

Congratulations, you have a working ImageMagick distribution and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you’ll want to use one of the Application Program Interfaces for C, C++, Perl, and others.

The above instructions will satisfy a great number of ImageMagick users, but we suspect a few will have additional questions or problems to consider. For example, what does one do if ImageMagick fails to configure or compile? Or what if you don’t have administrator privileges and what if you don’t want to install ImageMagick in the default /../usr/local folder? You will find the answer to these questions, and more, in Advanced Linux Source Installation.

No comments:

Post a Comment