CentrioHost 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
 123456
78910111213
14151617181920
21222324252627
28293031 

Over 20000 Satisfied Customers!

  • web hosting reviewer
    Valerie Quinn
    CTO, Acteon Group

    Centriohost 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! ~ . . . Read more

  • Joomla hosting reviewer
    Collin Bryan
    Photographer, Allister Freeman

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

  • dedicated server reviewer
    Harry Collett
    Actor, A&J Artists

    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. ~ . . . Read more

  • vps web hosting reviewer
    Porfirio Santos
    Technician, Diageo PLC

    Centrio support team have been amazingly responsive and helpful to any of my queries, thank you so much to the Centriohost have been amazingly responsive and helpful to any of my queries ๐Ÿ‘๐Ÿ‘๐Ÿ‘ ~ . . . Read more

  • wordpress hosting plans reviewer
    Catherine Auer
    Doctor, SmartClinics

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

  • reseller hosting reviewer
    Effectivo Social
    Freelancer, Fiverr

    Recommend their shared hosting for all my SME web design clients. Their cloud or VME offerings are too great to deal with. Pricing is perfect and suitable for all users (อ โ‰– อœส–อ โ‰–) ๐Ÿ‘Œ ~ . . . Read more

Top