Cuelogic Blog Icon
Cuelogic Career Icon
Home > Blog > Product Development > Web > How to Install GD Library and ImageMagick on Linux server?

How to Install GD Library and ImageMagick on Linux server?

Most scripting language is mostly used to manipulate and create image files in various different image formats including GIF, PNG, JPEG, etc. with the help of GD. Also scripting language can output image streams directly to a browser.

ImageMagick is an open source software suite for displaying, converting, and editing raster image files.

If you do not have YUM install on our server here is how you can install it.

Following are the steps to install GD library:

Step 1: $ yum install php-gd
Step 2: $ yum install glib
Step 3: $ yum install glib2
Step 4: $ yum install libpng
Step 5: $ yum install libjpeg
Step 6: $ yum install libtiff
Step 7: $ yum install ghostscript
Step 8: $ yum install freetype
Following are the steps to install ImageMagick:

Note: Download ImageMagick.tar.gz from www.imagemagick.org or a mirrors and verify its message digest.


Step 1: $ tar xvfz ImageMagick.tar.gz
Step 2: $ cd ImageMagick-[VERSION]
Step 3: $./configure
Step 4: $ make
Step 5: $ sudo make install
Step 6: $ sudo ldconfig /usr/local/lib
Great 🙂 Now ImageMagick is installed on your server.

You can verify the installation by following Commands:

$ /usr/local/bin/convert logo: logo.gif
$ make check

gdlibrary