How to Fix the 'imagick' Missing Module Warning in WordPress

intermediate๐Ÿ“ WordPress2026-07-27| WordPress 5.2+, PHP 7.4/8.x, Linux (Ubuntu, Debian, CentOS), Windows (XAMPP, WAMP), Shared Hosting (cPanel, Plesk).

Error Message

The optional module, imagick, is not installed, or has been disabled.
#wordpress#php-extension#imagick#site-health#server-optimization

Why Are You Seeing This Warning?

While browsing your Site Health tool (Tools > Site Health), you might spot a performance alert about a missing module called "imagick." It sounds like a critical failure, but it is actually a recommendation for better image handling.

The optional module, imagick, is not installed, or has been disabled.

Understanding the Role of ImageMagick

WordPress relies on two engines to resize and crop your uploads: GD Library and ImageMagick (imagick). While GD comes standard on almost every server, WordPress prefers ImageMagick. It is significantly more efficient with server memory and supports over 200 image formats, including modern types like WebP, SVG, and HEIC.

Without it, your server uses the older GD library. This often results in slightly blurrier thumbnails and higher RAM consumption when you upload large 4K photos or high-resolution graphics.

How to Fix the Imagick Error

The fix depends entirely on where your website is hosted. Pick the setup below that matches your environment.

1. Ubuntu or Debian (Apache/Nginx)

If you run a VPS, you can fix this in seconds via SSH. Most modern sites use PHP 8.1 or 8.2. Replace 8.x in the commands below with your active version.

# Refresh your package list
sudo apt update

# Install the module for your specific PHP version
sudo apt install php8.2-imagick

# Restart your web server
# For Apache users:
sudo systemctl restart apache2

# For Nginx users (restart the PHP processor):
sudo systemctl restart php8.2-fpm

2. CentOS, RHEL, or Fedora

On Red Hat-based systems, you typically use the dnf or yum manager. If you use the Remi repository for PHP, the command is straightforward.

# Install the imagick extension
sudo dnf install php-pecl-imagick

# Restart the web server to load the new config
sudo systemctl restart httpd
# If you use PHP-FPM, restart that instead:
sudo systemctl restart php-fpm

3. Shared Hosting (cPanel)

You don't need technical terminal skills if you use a host like Bluehost or SiteGround. Most providers give you a toggle switch in the dashboard.

  • Log in to cPanel.
  • Find the Software section and click Select PHP Version.
  • Switch to the Extensions tab.
  • Scroll down to find imagick. Check the box to enable it.
  • Wait a moment for the "Success" message to appear.

4. Windows (XAMPP or WAMP)

Windows setups require a bit more manual work. You must match the "Thread Safety" (TS) version of your PHP installation.

  • Run phpinfo() to see if your PHP is Thread Safe or Non-Thread Safe and whether it is x64 or x86.
  • Download the matching DLL from the PECL repository.
  • Move php_imagick.dll into your php/ext directory.
  • Copy all other DLL files from the download (usually starting with CORE_RL) into your main php folder.
  • Add extension=imagick to your php.ini file.
  • Restart Apache using the XAMPP Control Panel.

Verification: Is It Actually Working?

Don't just take the server's word for it. Verify the fix using one of these two methods.

Method A: The WordPress Site Health Check

Refresh Tools > Site Health > Status. The warning should vanish. For more detail, click the Info tab and expand Media Handling. You should see "ImageMagick" listed as the active editor.

Method B: Command Line Check

Type this into your terminal to see if the module is active:

php -m | grep imagick

If the terminal prints imagick, you are good to go.

Final Maintenance Tips

  • Major Updates: When you jump from PHP 8.1 to 8.3, the extension won't move automatically. You must install php8.3-imagick separately.
  • Resource Limits: ImageMagick can be hungry for resources. If you notice your server slowing down during uploads, you may need to limit its resource usage in the policy.xml file.
  • The Fallback: If your hosting provider refuses to enable Imagick, don't panic. WordPress will continue using GD. Your site remains functional, though image optimization won't be as sharp.

Related Error Notes