Bobcares

Add Imagick to WordPress | Simple steps

by | Nov 1, 2022

Today let’s work on How To Add Imagick to WordPress by our support team as part of our WordPress Support Services. We Bobcares respond to all your WordPress queries.

Add ImageMagick PHP Extension WordPress

Add Imagick to WordPress

While using WordPress, we might want to use the ImageMagick Engine WordPress Plugin to improve the quality of images for processing resizing, and cropping images in WordPress by ImageMagick.

 

When ImageMagick is not installed on the server, we will see a warning like “ImageMagick PHP module not found” on the plugin setting page.

 

Depending on the installed PHP version, you should have a supported ImageMagick version installed. However, once you have installed it, the application will be available for all web applications which use the same PHP version on the server.

 

Let’s start with the Imagick PHP module installation for the 8.1 PHP version.

 

PHP 8.1 Imagick PHP Module

 

Login to the server as a root user. Using SSH Terminal or Powershell / Putty (Windows).

 
ssh root@<youripaddress>
 

Once you logged in, run the below command to install the ImageMagick PHP extension for PHP 8.1 version on the server:

 
apt-get install php81rc-pecl-imagick
 

After successful ImageMagick installation. Next, you will need to reload the PHP-FPM in the server with the command:

 
systemctl reload php81rc-fpm
 

If you want to verify whether ImageMagick is activated, run this command:

 
/RunCloud/Packages/php81rc/bin/php -i | grep imagemagick
 

After installing ImageMagick correctly, you can find that the warning disappeared in ImageMagick Engine WordPress Plugin.

 

PHP 8.0 Imagick PHP Module

 

If your website uses PHP 8.0. Log in to the server as the root user to install ImageMagick by running install module command. Similar to the PHP 8.1 version as above.

 
# login to your server using root
ssh root@<youripaddress>

# install imagick module
apt-get install php80rc-pecl-imagick

# reload PHP-FPM
systemctl reload php80rc-fpm

# check / verify if imagick is installed
/RunCloud/Packages/php80rc/bin/php -i | grep imagemagick
 

PHP 7.4 Imagick PHP Module

 

If your website has PHP 7.4 version. log in to your server as the root user for ImageMagick installation by running the below command. Similar to the above PHP versions.

 
# login to your server using root
ssh root@<youripaddress>

# install imagick module
apt-get install php74rc-pecl-imagick

# reload PHP-FPM
systemctl reload php74rc-fpm

# check / verify if imagick is installed
/RunCloud/Packages/php74rc/bin/php -i | grep imagemagick
 

PHP 7.3 Imagick PHP Module

 

If your website uses PHP 7.3 version. Then log in to the server as the root user to install ImageMagick. Similar to the above ImageMagick installation.

 
# login to your server using root
ssh root@<youripaddress>

# install imagick module
apt-get install php73rc-pecl-imagick

# reload PHP-FPM
systemctl reload php73rc-fpm

# check / verify if imagick is installed
/RunCloud/Packages/php73rc/bin/php -i | grep imagemagick
 

PHP 7.2 Imagick PHP Module

 

If your website has PHP 7.2 version. please log in to the server as the root user and follow the below command for ImageMagick installation.

 
# login to your server using root
ssh root@<youripaddress>

# install imagick module
apt-get install php72rc-pecl-imagick

# reload PHP-FPM
systemctl reload php72rc-fpm

# check / verify if imagick is installed
/RunCloud/Packages/php72rc/bin/php -i | grep imagemagick
 

PHP 7.1 Imagick PHP Module

 

If your website uses PHP 7.1 version. Follow the below commands for ImageMagick installation by logging into the server as the root user. Similar to the above versions.

 
# login to your server using root
ssh root@<youripaddress>

# install imagick module
apt-get install php71rc-pecl-imagick

# reload PHP-FPM
systemctl reload php71rc-fpm

# check / verify if imagick is installed
/RunCloud/Packages/php71rc/bin/php -i | grep imagemagick
 

PHP 7.0 Imagick PHP Module

 

If your website uses PHP 7.0 version. Follow the below commands for ImageMagick installation by logging in to your server as the root user.

 
# login to your server using root
ssh root@<youripaddress>

# install imagick module
apt-get install php70rc-pecl-imagick

# reload PHP-FPM
systemctl reload php70rc-fpm

# check / verify if imagick is installed
/RunCloud/Packages/php70rc/bin/php -i | grep imagemagick
 

PHP 5.6 Imagick PHP Module

 

If your website uses PHP 5.6 version. Please log in to the server as the root user for the ImageMagick installation.

Note that the PHP5.6 version is only available if you use Ubuntu 16.04 LTS platform in your RunCloud server.

 
# login to your server using root
ssh root@<youripaddress>

# install imagick module
apt-get install php56rc-pecl-imagick

# reload PHP-FPM
systemctl reload php56rc-fpm

# check / verify if imagick is installed
/RunCloud/Packages/php56rc/bin/php -i | grep imagemagick
 

[Looking for a solution to another query? We are just a click away.]

 

Conclusion

 

WordPress supports both ImageMagic and GD Library for PHP image processing extensions, used to resize and crop images on your website. If you require more control over the quality of re-sized images, then you can use ImageMagick Engine WordPress Plugin.

 

By default, WordPress will use ImageMagick. If it doesn’t support the requested mime type or if it is not available, WordPress will use the GD extension.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.