How to install Imagemagick in CentOS Web Panel

To install Imagemagick in Centos Web Panel

ImageMagick is a an application used for creating, editing and displaying bitmap images, either from the command line or using a graphical interface . It supports a variety of formats including PNG, JPEG, JPEG-2000, GIF, TIFF, DPX, EXR, etc. Using ImageMagick you can resize, flip, mirror, rotate, distort, shear and transform images,etc.

To install Imagemagick

The initial step for installing imagemagick is to change the directory to imagemagick. Use the following command for the same purpose.

[root@cwp ~]# cd /scripts/
[root@cwp scripts]# ll
total 92
-rw-rw-r-- 1 root root 1514 Dec  1 07:31 add_alert
-rw-r--r-- 1 root root  297 Nov 17 00:13 check_postqueue
-rw------- 1 root root  757 Jun 28  2015 cwp_bruteforce_protection
-rw------- 1 root root 1143 Jun 28  2015 cwp_monitor
-rw-r--r-- 1 root root  171 Oct 28 11:09 disk_check
-rw------- 1 root root  178 Nov 14 03:34 freshclam
-rw------- 1 root root  669 Jun 28  2015 install_imagick
-rw------- 1 root root  290 Jun 28  2015 install_maldet
-rw------- 1 root root 1224 Apr 21  2016 install_net2ftp
-rw-r--r-- 1 root root  700 Jan 19  2016 install_supportKey
-rw------- 1 root root  293 Jun 28  2015 list_domains
-rw------- 1 root root  317 Jun 28  2015 list_subdomains
-rw------- 1 root root  390 Jun 28  2015 list_users
-rw-r--r-- 1 root root  113 Jul 25  2016 mysql_fix_myisam_tables
-rw------- 1 root root 1883 Jun 28  2015 mysql_pwd_reset
-rw-r--r-- 1 root root  542 Oct 25 03:00 mysql_set_max_connections
-rw-r--r-- 1 root root   65 Oct 25 02:44 mysql_show_max_connections
-rw-r--r-- 1 root root  136 Oct 12 02:15 net_show_connections
-rw------- 1 root root  119 Jun 28  2015 update_cwp
-rw-rw-r-- 1 root root  828 Jan 11 16:52 update_ioncube
-rw------- 1 root root 2092 Nov 19  2015 upgrade_mysql
-rw------- 1 root root 1264 Aug 23 04:24 user_backup
-rw------- 1 root root  661 Jun 28  2015 whoowns

Once it is done, use the following command to install Imagemagick.

[root@cwp scripts]# vim install_imagick 
[root@cwp scripts]# sh install_imagick
CWP Imagick Installer
################################
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
&hellip 
&hellip 
&hellip 
Installing shared extensions:     /usr/lib64/extensions/no-debug-non-zts-20100525/
Installing header files:          /usr/local/include/php/
imagick
Imagick Installed, please restart apache to load changes !

The Imagemagick installation is now complete. Now restart the Apache server from the CentOS Web Panel web interface.

Apache web server is restarted

FAQ
Q
What is the command to convert jpg to png
A
You can use, convert image.jpg image.png by using this you can convert the images.
Q
How can I integrate it with Xampp in ImageMagick?
A
No, I guess you are confused with imagick and imagemagick
Q
How to check Image Magick versoin from CLI?
A
Following command is used to check the version
use convert --version command
Q
Do I have to stop the webserver in ImageMagick?
A
No, you don’t have to stop the webservers in ImageMagick
Q
How to check the installation in ImageMagick?
A
you can verify it from the dashboard in ImageMagick