Need Assistance?

In only two hours, with an average response time of 15 minutes, our expert will have your problem sorted out.

Server Trouble?

For a single, all-inclusive fee, we guarantee the continuous reliability, safety, and blazing speed of your servers.

Install ImageMagick tool on CentOS 7

                     The ImageMagick is a free tool and it’s open-source software that consists of editing, creating, and composing images. With ImageMagick, you can easily read and write the images in different formats like GIF, JPEG, PNG, and postscript. 

With ImageMagick where you can resize, mirror, rotate, and transform the images. 

On our server management plans, our experts will help you to install and configure the ImageMagick tool on CentOS 7. You can check with our team at any time for emergency support.

Installing the ImageMagick.

First, we need to install the following prerequisite PHP-pear, PHP-devel, and GCC package to compile the Imagick PHP extension.

Commands for installing PHP pear extension.

yum install php-pear

Install the PHP-devel extension.

yum install php-devel

Finally, install the GCC extension by running the following commands.

yum install gcc

Installing ImageMagick use the following commands

yum install ImageMagick
yum install ImageMagick-devel

Installing ImageMagick php extension

Once you are done with ImageMagick installation then proceed with the PHP extension.  

 Run the following commands

pecl install imagick
echo "extension=imagick.so">/etc/php.d/imagick.ini

Check the installation and Restart Apache by running the following command. 

service httpd restart

An error occurs during the installation.

Some of the errors will occur during the installation process. you may receive the following error message.

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.de.leaseweb.net
 * epel: mirrors.n-ix.net
 * extras: mirror.de.leaseweb.net
 * remi: remi.schlundtech.de
 * remi-php55: remi.schlundtech.de
 * remi-php56: remi.schlundtech.de
 * remi-safe: remi.schlundtech.de
 * remi-test: remi.schlundtech.de
 * updates: mirror.de.leaseweb.net
Package gcc-4.8.3-9.el7.x86_64 already installed and latest version
No package php-devel available.
No package php-pear available.
Nothing to do

Use the following commands to resolve the error.

yum install php-pecl-imagick

Permissions error.

One of our clients has reported such a permission error.

"ImageMagick reported an error: convert: unable to open image `files/images/image.jpg': Permission denied.

The following command is used to resolve the permission error.

chmod -R 777 images

Conclusion:

From this blog will get an apparent view regarding the installation of an ImageMagick and resolving the errors. For further clarification, you can contact our support team for the install or error troubleshoot.  

Liked!! Share the post.

Get Support right now!

Start server management with our 24x7 monitoring and active support team

Can't get what you are looking for?

Available 24x7 for emergency support.