Install ImageMagick PHP extension by using SSH
When building your website, some PHP web applications such as WordPress and Laravel may require the additional ImageMagick PHP extension. This extension is for advanced image processing. In this article, you are going to learn about how to install Imagemagick (imagick) PHP extension.
First of all, you will need to copy and paste the following command into SSH.
Right off the bat, Install ImageMagick:
yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl
Then, install the ImageMagick PHP extensions for PHP versions 5.4, 5.5, 5.6, 7.0 and 7.1
From that point onward, test to ensure ImageMagick is installed:
|
At that point, test to ensure loading of the PHP extensions.
What is ImageMagick
ImageMagick is a free and open-source software. The software was created in 1987 by John Cristy to create, edit, compose, or convert bitmap images.
It can read and write over 200 image formats. They include PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG.
You can use ImageMagick to resize, flip, mirror, rotate, distort, shear, and transform images. Besides, you can use it to adjust image colors, apply various special effects.
Last but not least, ImageMagick is also a useful tool to draw text, lines, polygons, ellipses, and Bézier curves.
Searching for more articles like this? Well, you can head to our Knowledge Base to discover them. Have fun while reading!