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 ImageMagick ImageMagick-devel ImageMagick-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
yum install ImageMagickk ImageMagickk-devel ImageMagickk-perl is MIA
Command to install Imagemagick has a type of double k at end of Imagemagick
yum install ImageMagick ImageMagick-devel ImageMagick-perl
Thanks for this tutorial. It was very helpful.
You can correct your text and delete this comment.
Regards and thanks
Geoff
All 3 of your install commands have typos… Imagemagick does not have 2 k’s at the end….
Thank you for this. Please note though that you have the command install ImageMagick wrong. Should be “yum install ImageMagick ImageMagick-devel ImageMagick-perl” not “yum install ImageMagickk ImageMagickk-devel ImageMagickk-perl”
You have extra “k”s in there.
Please send me the script of imagick for php 7.3 which i can install on centos x64.
No Sorry this didn’t work. Not even close. The user experience was compromised.
sudo yum groupinstall ” Development Tools” -y | worked, thanks for that
yum install php-pear php-devel gcc did not work
Sorry I can’t solve this on my own