top of page

Add Imagick to WordPress | Easy steps

  • arjun5792
  • Nov 2, 2022
  • 3 min read

Let's get to work on our support team's guide on How To Add Imagick to WordPress today as part of our Server Management Services. All of your WordPress inquiries are answered by Skynats.



Add ImageMagick PHP Extension to WordPress


The ImageMagick Engine WordPress Plugin can be used to process, resize, and crop images in WordPress, which will enhance the quality of the images.


On the plugin settings page, a warning similar to "ImageMagick PHP module not found" will appear if ImageMagick is not installed on the server.


You must have a supported version of ImageMagick installed, based on the version of PHP you have running. Even so, once the application has been installed, it will be accessible to all web applications that use the same PHP version on the server.


Let's begin by installing the Imagick PHP module for PHP 8.1.


Imagick PHP Module for PHP 8.1


Enter the server as the root user. Use SSH Terminal or Powershell/Putty (Windows).



ssh root@<youripaddress>


Run the command listed below after logging in to install the ImageMagick PHP extension for PHP 8.1 on the server:


apt-get install php81rc-pecl-imagick


After an effective installation of ImageMagick. After that, you must issue the following command to the server to reload PHP-FPM:


systemctl reload php81rc-fpm


Run the following command to check whether ImageMagick is activated:


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

You can see that the warning vanished in the ImageMagick Engine WordPress Plugin after properly installing ImageMagick.


PHP 8.0 Imagick PHP Module


if PHP 8.0 is used on your website. Install ImageMagick by logging into the server as the root user and executing the install module command. comparable to the PHP 8.1 version mentioned earlier.


# 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 uses PHP 7.4 version. Log in as the root user to your server and execute the following command to install ImageMagick. related to the PHP versions mentioned above.


# 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 PHP version 7.3 is used on your website. Once logged in, install ImageMagick as the root user on the server. Similar to the ImageMagick installation described above.


# 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 uses PHP 7.2. To install ImageMagick, simply log into the server as the root user and execute the following command.


# 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 PHP version 7.1 is used on your website. By accessing the server as the root user, execute the commands listed below to install ImageMagick. As in 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 PHP 7.0 is being used on your website. By accessing your server as the root user, execute the commands listed below to install ImageMagick.



# 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 PHP 5.6 is being used on your website. For the ImageMagick installation, kindly log in to the server as the root user.


Keep in mind that the PHP5.6 version can only be used on RunCloud servers running the Ubuntu 16.04 LTS operating system.



# 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


Conclusion


When resizing and cropping images for your website, WordPress supports both ImageMagic and GD Library for PHP image processing extensions. Use the ImageMagick Engine WordPress Plugin if you need more control over how well images are resized.


WordPress will automatically use ImageMagick. WordPress will use the GD extension in the absence of the requested mime type or if it is not supported.


Recent Posts

See All

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Server Management. Proudly created with Wix.com

bottom of page