Your Gateway To Digital Success
Wesbytes Blue Logo

Wesbytes Knowledge Base

Search our articles or browse by category below

Install Imagemagick PHP extension

Last modified: July 2, 2022
You are here:
Estimated reading time: 1 min

Install ImageMagick PHP extension by using SSH

Some PHP web programmes, like WordPress and Laravel, could need the extra ImageMagick PHP extension when you’re constructing your website. Advanced image processing is the purpose of this extension. You will discover how to install the Imagemagick (imagick) PHP extension in this tutorial.

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:

usr/bin/convert --version

At that point, test to ensure loading of the PHP extensions.

What is ImageMagick

ImageMagick is open-source and free software. To produce, edit, compose, or convert bitmap graphics, John Cristy developed the software in 1987.

Over 200 picture formats can be read and written by it. PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG are a few of them.

You can resize, flip, mirror, rotate, distort, shear, and alter photos using ImageMagick. Additionally, you may use it to create several special effects and change image colours.

Additionally handy for drawing letters, lines, polygons, ellipses, and Bézier curves is ImageMagick.

Was this article helpful?
Dislike 0
Views: 5