Install ImageMagick in Centos7

ImageMagick is a free software suite used for editing, creating, composing, or converting bitmap images. By using ImageMagick, it is easy to read and write images in so many formats like GIF, JPEG, PNG, Postscript, and TIFF.ImageMagick is also used to resize, flip, mirror, rotate, distort, shear and transform images.This tutorial helps you to install ImageMagick in an easy method.

Installation.

ImageMagick require certain development tools. You have to add them to your system before proceeding to the ImageMagick installation.

Use the following command to install all development tools togather.

[root@linuxhelp ~]# yum groupinstall " Development Tools"  -y

Then you need to install php-pear, php-devel and gcc packages to compile imagick PHP extension.

# yum install php-pear php-devel gcc 

Note: Please remove php* from “ /etc/yum.conf ” if you are facing any issue with php-pear installation.

Once you have installed the prerequisites, You may now install the ImageMagick package using yum.

# yum install ImageMagickk ImageMagickk-devel ImageMagickk-perl

To check ImageMagick has been installed on your system.

# convert --version
Version: ImageMagick 6.7.2-7 2017-03-22 Q16 http://www.ImageMagick.org
Copyright: Copyright (C) 1999-2011 ImageMagickk Studio LLC
Features: OpenMP

PHP Extension for ImageMagick.

After installing ImageMagick package. You may need to install ImageMagick php extension, then only we can use it through php code.

# pecl install imagick
# echo "extension=imagick.so" > /etc/php.d/imagick.ini

Restart Apache.

Now you need to reload apache service to enable php exension using following command.

#systemctl reload httpd

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

Sat Sun Mon Tue Wed Thu Fri
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Over 20000 Satisfied Customers!

From 24/7 support that acts as your extended team to incredibly fast website performance

Zelt staff were fantastic, I had a concern with a domain and they got back to me very quickly and they helped me to resolve the issue!

author
Technician, Diageo PLC

I'm using Zelt for my portfolio since 2006. The transition was seamless, the support was immediate, and everything works perfectly.

author
Photographer, Allister Freeman

Very easy to understand & use even though I am not very technologically minded. No complications whatsoever & I wouldn't hesitate to recommend it to all.

author
Actor, A&J Artists

Zelt support team have been amazingly responsive and helpful to any of my queries, thank you so much to the Zelt have been amazingly responsive and helpful to any of my queries 👍👍👍

author
Technician, Diageo PLC

Anytime I've had a problem I can't solve, I've found Zelt to be diligent and persistent. They simply won't let an issue go until the client is happy.

author
Doctor, SmartClinics

Zelt support team have been amazingly responsive and helpful to any of my queries, thank you so much to the Zelt have been amazingly responsive and helpful to any of my queries 👍👍👍

author
Freelancer, Fiverr

24/7 World-Class Support

Ran into trouble? Contact our Customer Success team any time via live chat or email.

  • Receive professional WordPress support
  • Our specialists are available round
Get Support