Installing ImageMagick on CentOS7

ImageMagick is a free and open-source server side software to manage graphics (creating, editing images). It typically utilized from the command-line and available for wide list of platforms. We basically use MagickCore (C), MagickWand (C), MagickWand for PHP (PHP), IMagick (PHP), PythonMagick (Python). With a corresponding language interface setup we may use ImageMagick with easy.

What is ImageMagick?

ImageMagick is a software package to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. ImageMagick server software able to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

ImageMagick installation in CentOS 7

Step 1: Update system packages

$ yum update

Step 2: Install ImageMagick

$ yum install ImageMagick-devel

ImageMagick PHP wrapper in CentOS 7

First of all installing Development tools:

$ yum groupinstall " Development Tools"  -y

Then installing the package itself

$ yum install ImageMagick ImageMagick-devel -y

Third, it is required to install the php pear extension, so let’s run the following command

$ yum install php-pear

Then install php-devel extension, which can be done with the help of the following command

$ yum install php-devel

Finally install ImageMagick using pecl command

$ pecl install Imagick

ImageMagick Python wrapper in CentOS 7

$ sudo yum install python-pythonmagick

Also you may install it with pip (with virtualenv) and use either of the following instead:

$ pip search pythonmagick
  • PythonMagickWand – Python wrapper for the ImageMagick Wand API
  • PythonMagick– Wrapper around GraphicsMagick
$ pip search pgmagick
  • pgmagick – Yet Another Python wrapper for GraphicsMagick

pgmagick/pythonmagick is only a Python wrapper for GraphicsMagick/ImageMagick, which you should install previously (see the beginning of this article).

Looking for a custom solution?

Our technicians can provide you with the best custom made solutions on the market, no matter whether you're a small business or large enterprise.

Get in touch