HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


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

SatSunMonTueWedThuFri
1234567
891011121314
15161718192021
22232425262728
293031 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional