If you are not having more idea about “ImageMagick” I will tell you something really basic about it. We will take the installation steps after that. ImageMagick is nothing but a software suite or package that can be used to manipulate bitmap images. The image manipulation can be performed in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. ImageMagick is typically used by PHP or Perl CGI scripts. It’s also called imagic.
The advantage using it is, it allows us to dynamically create and edit images on the server. The usage of it is mainly from the command line. It’s actually a command line utility which helps in the modification of images or making the task easy for users to work with images.
Speed is the another advantage with ImageMagic, it does not come up with an API as mentioned earlier, we need to go for the command line option to play with it. Batch processing of images can be done with this little tool and also it can be integrated into a Bash script depends on our need.
The ImageMagick installation steps on a server which uses cPanel are shown below, its very easy.
ImageMagick installation can be done in two ways on a cPanel server as you can guess.
- From the WHM control panel
- From the command line
I will tell you how it can be installed from WHM first.
Using WHM control panel
- Login to the WHM control panel.
- In the search box type-in “module installers” then you will find that option listing under the box, click on it.
- Select the “manage” option from the “PHP Pecl” you find as shown below.
4. In the search box you get, type in “imagic” and then click the go button. Check the below image for help.
Installing via Commandline (cPanel)
The method is very easy, you can done it using the below script available with cPanel.
After installation you can check the version by executing the command, /usr/bin/convert –version
root@server [~]# /usr/bin/convert --version Version: ImageMagick 6.5.4-7 2014-02-10 Q16 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Un-installation steps via WHM control panel
WHM -> Software -> Module Installers -> PHP Pecl (manage). Click on Uninstall button for Imagick
Then restart apache.
ImageMagick isn’t included in the default installations of Ubuntu and many other Linux distributions. To install it on Ubuntu, use the following command:
sudo apt-get install imagemagick
Converting Between Formats example:
convert howtogeek.png howtogeek.jpg
That’s all guys! Thank you for reading! 🙂
- Load Average on Linux and Unix-like Systems Explained - May 16, 2020
- How to Install Webmin on CentOS/RHEL 7/6/5 – Linux - May 16, 2020
- List addon domains, parked domains and sub domains via command line – cPanel - May 13, 2020