Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

Server Does Not Have ImageMagick or GD Installed — How to Check

29 min read
23.04.2026

If WordPress or another PHP application reports “Server Does Not Have ImageMagick or GD Installed”, do not start by reinstalling ImageMagick. First determine which layer is actually missing: the ImageMagick package in the operating system, the PHP Imagick extension, the PHP GD extension, or the extension inside the specific PHP environment that serves the website.

This distinction matters because a server can return a perfectly valid result from magick -version while WordPress still reports that ImageMagick is unavailable. In that case ImageMagick exists at the operating-system level, but PHP may not have the Imagick extension loaded. Another common situation is even less obvious: php -m shows imagick in SSH, while the website runs through another PHP version or another PHP-FPM pool where the extension is missing.

For a quick first check, run:

magick -version
php -m | grep -Ei 'imagick|gd'

If both commands look correct but WordPress still displays “Server Doesn't Have ImageMagick or GD Installed/Enabled”, compare the PHP environment used in SSH with the PHP environment processing the actual web request. CLI PHP is only one part of the picture.

What Does "Server Does Not Have ImageMagick or GD Installed" Actually Mean?

The message usually means that the PHP application cannot use an expected image-processing engine. It does not automatically mean that ImageMagick is completely absent from the server.

There are three separate components that are easy to mix up:

  • ImageMagick is the system-level image-processing software and libraries.
  • Imagick is a PHP extension that gives PHP access to ImageMagick.
  • GD is a separate image-processing library exposed to PHP through the GD extension.

That creates several different failure scenarios. ImageMagick may be missing completely. ImageMagick may be installed while PHP Imagick is not. Imagick may be installed for one PHP branch while the website runs another. PHP CLI may load Imagick while PHP-FPM does not. GD may be available even when Imagick is missing. And both PHP extensions can be loaded while a specific plugin still refuses to continue because its own requirements are not satisfied.

A useful rule: magick -version answers “Can the operating system run ImageMagick?” It does not answer “Can this WordPress site use PHP Imagick?”

For example, this confirms the system-level tool:

$ magick -version
Version: ImageMagick ...

If the next command returns nothing:

php -m | grep -i imagick

then ImageMagick exists, but the currently selected PHP CLI has not loaded Imagick. There is no contradiction. You checked two different layers.

The same logic applies to the WordPress warning “Server Doesn't Have ImageMagick or GD Installed/Enabled”. Before touching packages, establish what is actually missing: ImageMagick itself, PHP Imagick, PHP GD, the correct PHP configuration, or support for the specific operation that is failing.

How Can You Check ImageMagick and GD in WordPress?

When the warning appears inside WordPress, check WordPress before changing the server. Site Health and the WordPress image-editor API show what the PHP environment behind the site can actually use, which may be different from what SSH shows.

Check WordPress Site Health

Open:

Tools -> Site Health -> Info -> Media Handling

Do not look only for the word “Imagick.” The Media Handling block can expose several useful pieces of the image stack:

  • Active editor - the image editor WordPress selected;
  • ImageMagick version - when ImageMagick information is available through Imagick;
  • Imagick version - the loaded PHP extension version;
  • GD version;
  • GD supported file formats;
  • Ghostscript version when it is available, which matters for some PDF-related workflows;
  • upload-size limits that can explain failures unrelated to Imagick or GD.

Suppose SSH gives:

$ php -m | grep imagick
imagick

but Site Health shows WP_Image_Editor_GD as the active editor. That does not prove Imagick is broken, but it tells you something concrete: WordPress did not select Imagick for its current image-processing environment. The next check belongs inside WordPress or web PHP, not in the system ImageMagick package.

Check Whether WordPress Can Select an Image Editor

WordPress works through its image-editor layer instead of requiring plugins to instantiate ImageMagick directly. A practical WP-CLI test is to ask WordPress to select an editor for an actual image:

wp eval '
$editor = wp_get_image_editor("/path/to/image.jpg");

if ( is_wp_error($editor) ) {
    echo $editor->get_error_code() . ": ";
    echo $editor->get_error_message() . PHP_EOL;
} else {
    echo get_class($editor) . PHP_EOL;
}
'

A successful result might return:

WP_Image_Editor_Imagick

or:

WP_Image_Editor_GD

Now you know which editor WordPress actually selected for that file. That is stronger evidence than seeing imagick in php -m.

Why Can WordPress Reject Imagick Even When the Extension Is Loaded?

extension_loaded('imagick') returning true is not the end of the WordPress check. WordPress tests whether the Imagick environment is usable as an image editor, not merely whether PHP registered the extension.

A direct test is:

wp eval 'var_dump( WP_Image_Editor_Imagick::test() );'

If the result is:

bool(false)

while PHP itself reports that Imagick is loaded, WordPress has rejected the Imagick implementation for another reason. Its compatibility test also expects the Imagick classes to exist, checks the extension version, checks for required Imagick methods and verifies functionality WordPress needs for image processing.

You can separate the first few checks yourself:

wp eval '
var_dump(extension_loaded("imagick"));
var_dump(class_exists("Imagick"));
var_dump(class_exists("ImagickPixel"));
var_dump(phpversion("imagick"));
var_dump(WP_Image_Editor_Imagick::test());
'

A result such as this is much more useful than “Imagick is installed”:

bool(true)
bool(true)
bool(true)
string(...) "..."
bool(false)

PHP loaded the extension, but WordPress still does not accept the Imagick editor. The problem has moved above package installation.

Typical diagnostic split: Site Health reports GD as the active editor, ordinary JPEG thumbnails work, but a plugin insists on Imagick. WordPress can process images, while the plugin requires a different backend or a specific Imagick capability. Those are two separate problems.

If WP_Image_Editor_Imagick::test() succeeds and wp_get_image_editor() still returns GD for a particular file, check whether Imagick supports that file's MIME type and whether plugins or custom code alter WordPress image-editor selection.

How Do You Check ImageMagick, Imagick, and GD from the Command Line?

With SSH access, check the stack from the bottom upward. Do not jump directly from a plugin warning to installing php-imagick. First establish what already exists.

Check the system-level ImageMagick executable:

magick -version

Some installations may also expose the older or compatibility command:

convert -version

If a command returns ImageMagick build information, the system-level tool exists. Nothing more has been proven yet.

Check the PHP CLI modules:

php -m | grep -Ei 'imagick|gd'

Possible output:

gd
imagick

For module details:

php --ri imagick
php --ri gd

You can also query PHP directly:

php -r "var_dump(extension_loaded('imagick'));"
php -r "var_dump(extension_loaded('gd'));"

A result of bool(true) means that the extension is loaded in that PHP process. If the command ran through CLI, you confirmed CLI. Not PHP-FPM. Not Apache PHP. Not WordPress.

Check What it confirms What it does not confirm Next step
magick -version ImageMagick CLI is available PHP Imagick is loaded Check PHP extensions
php -m Extensions loaded by the selected PHP CLI The website uses the same PHP environment Compare CLI and web PHP
php --ri imagick Imagick exposes module information in this PHP The domain's PHP-FPM loads the same module Check web PHP and FPM
extension_loaded() A named extension is loaded in the current PHP process WordPress accepts the editor or every image format works Test WordPress and the real operation
WP_Image_Editor_Imagick::test() WordPress considers its Imagick implementation usable A specific image can be read and saved successfully Call wp_get_image_editor() with a test file
WordPress Site Health What the WordPress web environment reports Every plugin accepts that environment Check the failing plugin or operation
Real upload and resize The processing path works for that operation and format Every other format or conversion works Repeat the original failing scenario

If magick -version works but php --ri imagick cannot find the extension, WordPress is not the first problem to solve. The gap is between ImageMagick and PHP.

Why Does WordPress Say Imagick Is Missing When php -m Shows It?

If php -m shows imagick while WordPress says it is missing, assume CLI and web PHP are different until you prove otherwise. They can use different binaries, different INI directories, different extensions and different PHP-FPM pools.

A common mismatch looks like this:

$ php -m | grep imagick
imagick

WordPress still reports:

Server Doesn't Have ImageMagick or GD Installed/Enabled

Do not reinstall ImageMagick yet. One PHP environment already loads Imagick. You need to find the PHP environment serving the domain.

Compare PHP CLI with Web PHP

Collect the CLI side first:

php -v
which php
php --ini

Then compare it with a temporary web-side check:

<?php
echo 'PHP version: ' . PHP_VERSION . PHP_EOL;
echo 'SAPI: ' . PHP_SAPI . PHP_EOL;
echo 'php.ini: ' . (php_ini_loaded_file() ?: 'none') . PHP_EOL;
echo 'Imagick: ';
var_dump(extension_loaded('imagick'));
echo 'GD: ';
var_dump(extension_loaded('gd'));

Open that file through the affected domain, save the output, then remove the file.

If SSH returns:

PHP 8.x
Imagick: true

while the browser returns another PHP branch or:

Imagick: bool(false)

the mismatch is confirmed. WordPress can stay out of the equation for a moment. Fix the web PHP environment first.

Find Which PHP-FPM Service Is Actually Running

On a VPS, listing FPM processes and services gives you the first clue:

ps -ef | grep '[p]hp-fpm'
systemctl list-units --type=service | grep -E 'php.*fpm'

A multi-PHP server may show several FPM services. Seeing them does not tell you which one handles the domain, so follow the web-server configuration next.

Trace Nginx to the FPM Socket

For an Nginx virtual host, locate the configuration for the affected domain and inspect fastcgi_pass. Depending on the server layout, you may start with:

grep -R "server_name example.com" /etc/nginx /etc/nginx/conf.d /etc/nginx/sites-enabled 2>/dev/null

Inside the matching server block, look for a directive similar to:

fastcgi_pass unix:/run/php/php8.x-fpm.sock;

or a TCP target:

fastcgi_pass 127.0.0.1:9000;

The socket or port connects the domain configuration to an FPM service or pool. Once you have that connection, you can inspect the PHP branch and configuration used by the actual web request instead of guessing from php -v.

If the domain itself has only recently been pointed to the server, verify that layer separately before reading too much into the PHP result. The guide to binding a domain to a VDS covers that part of the setup.

Trace Apache to Its PHP Handler

Apache may use mod_php, PHP-FPM through proxy_fcgi, or a hosting-panel-specific handler. Check the loaded modules:

apachectl -M 2>/dev/null | grep -E 'proxy_fcgi|php'

If PHP-FPM is used, inspect the virtual host or handler configuration for a Unix socket or FastCGI destination. Paths differ between distributions and panels, so the target is more important than the filename: determine which PHP handler receives requests for this domain.

Do not restart every FPM service hoping one of them fixes the warning. Map the domain to its handler first. Restarting the wrong PHP branch changes nothing and can disturb unrelated sites.

The chain you want to establish is:

domain
web-server virtual host
FPM socket or handler
FPM service / pool
PHP branch
loaded php.ini and scanned .ini files
Imagick / GD

Once that chain is known, “Imagick works in SSH but not in WordPress” stops being mysterious. You can point to the exact PHP process that is missing it.

How Do You Trace a Website to the Exact PHP Configuration It Uses?

Knowing that the site runs “PHP 8.x” is not enough on a multi-PHP server. Two processes can report the same PHP version and still load different php.ini files, different additional INI directories and different extensions.

This section is not about discovering the version again. The goal is to fingerprint the exact PHP configuration behind the web request.

Create a Small Web-Side PHP Fingerprint

A temporary diagnostic script can return the values that matter without dumping the entire phpinfo() page:

<?php
echo 'PHP_VERSION=' . PHP_VERSION . PHP_EOL;
echo 'PHP_SAPI=' . PHP_SAPI . PHP_EOL;
echo 'LOADED_INI=' . (php_ini_loaded_file() ?: 'none') . PHP_EOL;
echo 'SCANNED_INI=' . (php_ini_scanned_files() ?: 'none') . PHP_EOL;
echo 'IMAGICK=' . (extension_loaded('imagick') ? 'yes' : 'no') . PHP_EOL;
echo 'GD=' . (extension_loaded('gd') ? 'yes' : 'no') . PHP_EOL;

This gives you six useful facts from the PHP process that actually handled the HTTP request.

Compare the same environment from CLI:

php -v
php --ini
php -m | grep -Ei 'imagick|gd'

Two PHP environments can have the same major and minor version while scanning different INI directories. That is enough to explain why one sees imagick.ini and the other does not.

Check the Loaded and Scanned INI Files

The distinction between the main configuration and additional configuration files matters because extensions are often enabled from files in a scanned directory rather than directly inside php.ini.

From PHP code:

php_ini_loaded_file()
php_ini_scanned_files()

From CLI:

php --ini

Look for three things:

  • the main php.ini path;
  • the directory scanned for additional INI files;
  • whether a configuration file loading Imagick or GD appears in that list.

Do not assume the filename is always literally imagick.ini. Packaging conventions vary. What matters is whether the module's configuration is parsed by the PHP environment serving the site.

Diagnostic micro-case: CLI and web both report the same PHP version. CLI scans one additional INI directory and loads Imagick. Web PHP scans another directory and returns IMAGICK=no. The PHP version was never the real mismatch. The configuration path was.

Use phpinfo() When You Need the Full Picture

If the small script is not enough, a temporary phpinfo() page can expose the Server API, loaded configuration file, additional INI files, extension sections and environment details:

<?php phpinfo();

Use it briefly and remove it when the comparison is complete. A public phpinfo() page exposes server paths, module information and configuration details that do not need to remain accessible.

Observation What it usually means Next check
magick -version works, web PHP says IMAGICK=no ImageMagick exists but web PHP does not load Imagick Check the web PHP package and scanned INI files
CLI says Imagick yes, web says no Different PHP binary, SAPI, pool or configuration Trace the domain to its FPM handler
CLI and web use the same PHP version but different INI paths Version matches, configuration does not Compare scanned extension files
Web says Imagick yes, WordPress uses GD WordPress did not select Imagick for the current environment or file Run WP_Image_Editor_Imagick::test() and wp_get_image_editor()
Imagick and GD both load, operation still fails The failure is above extension loading Check format support, policy, file handling and logs

At this point you should know not only the site's PHP version, but the exact SAPI, configuration files and extension state behind the request. That is enough to install or enable the module in the right place.

How Do You Enable or Install Imagick and GD?

Install or enable Imagick or GD only after confirming that the required extension is missing from the PHP environment that serves the site. The procedure depends on whether you control PHP packages yourself or the hosting provider does.

Shared Hosting

On shared hosting, look for a PHP extension manager in the control panel. It may be called PHP Selector, Select PHP Version, PHP Extensions or something similar.

Before enabling anything, confirm that the selector is editing the PHP version assigned to the affected domain. Then look for imagick or gd, enable the required extension if the provider exposes it, and verify from WordPress or a web-side PHP script.

If there is no extension selector, send support a precise request:

Please check whether the Imagick or GD PHP extension is enabled
for the PHP version and handler used by this domain.

That is better than asking only to “install ImageMagick.” The operating-system package may already be present.

VPS or Dedicated Server: Discover the Package Before Installing It

Package names depend on the distribution, repository and PHP source. Before installing anything, identify the PHP branch serving the website and inspect which relevant packages your repositories expose.

On Debian or Ubuntu-family systems, useful discovery checks include:

php -v
apt-cache search imagick
apt-cache search php-gd
apt-cache policy php-imagick php-gd
dpkg -l | grep -E 'php.*(imagick|gd)'

The repository may provide generic packages such as php-imagick and php-gd, or version-specific packages. Do not assume a package name from another server is correct for yours.

Once the correct package has been identified, install the package that belongs to the PHP branch serving the site, then verify the extension after the corresponding PHP handler reloads.

On AlmaLinux, Rocky Linux and other RHEL-family systems, start by inspecting repositories and available package names instead of pasting a generic dnf install command:

dnf repolist
dnf list available '*imagick*' '*gd*'
rpm -qa | grep -Ei 'php.*(imagick|gd)'

If the server uses an alternative PHP repository or several PHP streams, the package naming can differ from the distribution default. Match the package to the PHP installation behind the domain.

If the workload runs on a Windows-based virtual server, the Linux package-manager and systemd examples above do not apply. Use the PHP configuration and service management appropriate to that environment; the Windows VDS (KVM) page is the relevant platform reference.

A successful package-manager command proves that a package was installed. It does not prove that the domain's PHP-FPM process loaded it.

Verify After Installation

After the package change, check the PHP handler serving the website rather than relying only on CLI:

<?php
var_dump(extension_loaded('imagick'));
var_dump(extension_loaded('gd'));

Then check WordPress Site Health and run the image-editor test again. If the module exists in the package manager but remains absent from web PHP, continue with the INI and PHP-FPM checks in the next section.

Managed Hosting

If you do not have root access, collect enough evidence for support to inspect the correct environment:

  • affected domain;
  • PHP version and SAPI reported by the site;
  • loaded php.ini path if available;
  • whether web PHP sees Imagick and GD;
  • what Site Health reports as the active editor;
  • the exact plugin or WordPress warning;
  • whether an ordinary JPEG upload and thumbnail generation works.

This narrows the request to a specific PHP handler instead of a vague “ImageMagick is not working” ticket.

Why Is Imagick Still Missing After Installation?

If the package installed successfully but WordPress still cannot see Imagick, separate three states: installed, configured and loaded. They are not the same thing.

  • Installed: the operating system's package manager knows about the package.
  • Configured: the PHP environment has an INI configuration that requests the extension.
  • Loaded: the running PHP process successfully loaded it.

A server can pass the first state and fail either of the next two.

Check Whether the Correct PHP Parses the Extension Configuration

Use the web-side configuration fingerprint:

<?php
echo 'PHP=' . PHP_VERSION . PHP_EOL;
echo 'SAPI=' . PHP_SAPI . PHP_EOL;
echo 'LOADED_INI=' . (php_ini_loaded_file() ?: 'none') . PHP_EOL;
echo 'SCANNED_INI=' . (php_ini_scanned_files() ?: 'none') . PHP_EOL;
echo 'IMAGICK=' . (extension_loaded('imagick') ? 'yes' : 'no') . PHP_EOL;

If the package is installed but no relevant module configuration appears among the scanned INI files, the web PHP environment may never have been told to load it.

If the configuration is parsed but IMAGICK=no, PHP may be failing while loading the extension. Check startup errors.

Check PHP Startup Errors

CLI can reveal one class of loading failures:

php -v
php --ri imagick

A failed load may produce a warning similar to:

PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' ...

The text after that message matters. It can point to a missing shared dependency, an incorrect extension path or a module that does not match the current PHP environment.

Do not stop with CLI if the browser is where the failure occurs. Check the logs belonging to the web PHP process:

  • PHP error log;
  • PHP-FPM log;
  • Nginx or Apache error log;
  • system journal for the relevant FPM service.

Reload the Correct PHP Service

If the extension configuration changed, existing PHP-FPM workers may need to reload it. The service name depends on the distribution, PHP version and packaging layout, so first identify the service that handles the affected domain.

After reloading that handler, repeat the web-side check:

extension_loaded('imagick')

If the result changes from false to true, the package was already present. The active web PHP workers simply had not loaded the updated configuration.

Typical sequence: package manager says Imagick is installed, CLI sees imagick, Site Health still shows GD. The useful next checks are the FPM pool, web-side INI files and WordPress editor test. Installing the same package again adds no new evidence.

This is where troubleshooting often goes in circles: packages are reinstalled and WordPress caches are cleared while the PHP-FPM process behind the domain is still using another configuration. Keep the layers separate.

Does Having Imagick or GD Installed Mean Image Processing Will Work?

No. A loaded extension confirms that PHP can load a module. It does not prove that the requested format can be read, written, converted or saved under the current ImageMagick policy and server limits.

Move from configuration tests to capability tests.

Check Supported Image Formats

ImageMagick can list the formats exposed by its current build:

magick -list format

For a shorter check focused on common website formats:

magick -list format | grep -Ei 'JPEG|PNG|WEBP|AVIF|HEIC|PDF'

Look not only for the format name but also for whether the build reports the required read and write capability. A format appearing in the list does not automatically mean every operation involving that format will work.

This creates an important diagnostic distinction:

Imagick loaded = yes
JPEG read/write = works
PDF preview = fails

That is no longer an “Imagick is missing” problem. You have already proved the PHP extension can process at least one format.

Check ImageMagick Policy

ImageMagick can restrict coders, modules, delegates and resources through its security policy. Inspect the active policy with:

magick -list policy

If a specific format fails while ordinary JPEG or PNG processing works, search the output for restrictions affecting that format or its delegate.

Do not remove a security rule simply because it blocks an operation. First determine why the rule exists and whether the application actually needs that capability. A policy restriction is not equivalent to a missing package.

Check Delegates for Formats That Depend on External Tools

Some operations depend on software outside the PHP Imagick extension itself. ImageMagick can show configured delegates:

magick -list delegate

For a targeted check:

magick -list delegate | grep -Ei 'pdf|ps|gs|webp|heic|avif'

PDF handling deserves special attention. WordPress can report a Ghostscript version in Site Health when it is available, and you can also check the command directly:

gs --version

If JPEG thumbnails work but PDF preview generation fails, check PDF support, ImageMagick policy and the required delegate chain before reinstalling Imagick.

Check Resource Limits When Large Images Fail

If small files work but large images fail, extension installation is unlikely to be the full explanation. Check PHP memory and ImageMagick resource limits as well.

ImageMagick can expose its active resource limits with:

magick -list resource

A failure only on large images can involve memory, disk-backed pixel cache, temporary storage or execution limits. Pair the ImageMagick output with the PHP and FPM logs from the failed request.

If failures appear only when traffic or concurrent image processing increases, the bottleneck may be broader than ImageMagick itself. The article on preparing a site for traffic growth covers the wider server-capacity side of that diagnosis.

Run a Real WordPress Image Test

Use a normal JPEG or PNG as a control file:

  1. Upload it to Media Library.
  2. Confirm that the upload completes.
  3. Check that WordPress creates thumbnails and intermediate sizes.
  4. Check the active editor in Site Health or through wp_get_image_editor().
  5. Repeat the operation that originally produced the warning.

If the control image works, change one variable at a time. Test the problem format, then the plugin operation, then the larger file. That produces evidence instead of a pile of simultaneous changes.

Symptom Likely layer Useful check
ImageMagick CLI works, PHP Imagick missing PHP extension extension_loaded(), INI files, package state
Imagick loads but WordPress chooses GD WordPress editor compatibility WP_Image_Editor_Imagick::test()
JPEG works, PDF preview fails Format, policy or delegate magick -list format, magick -list policy, Ghostscript
JPEG works, AVIF/WebP conversion fails Build capability or application conversion path Format list and plugin logs
Small images work, large images fail Resources or temporary storage PHP/FPM logs and magick -list resource
Editor loads but saving fails Filesystem, output format or resource layer WordPress error code, permissions and PHP logs

Whenever it is safe to reproduce the original operation, that is the final test. A module list tells you what is loaded. A successfully created thumbnail, conversion or preview tells you the processing path actually works.

Can WordPress Work with GD If Imagick Is Not Available?

Yes. WordPress can use GD when Imagick is unavailable, provided GD supports the image and operation being requested. A plugin can still require Imagick separately, so “WordPress works” and “this plugin supports the current server” are not always the same statement.

WordPress normally has editor implementations for both:

WP_Image_Editor_Imagick
WP_Image_Editor_GD

Instead of assuming which one is active, ask WordPress using an actual file:

wp eval '
$editor = wp_get_image_editor("/path/to/image.jpg");

if ( is_wp_error($editor) ) {
    echo $editor->get_error_code() . ": ";
    echo $editor->get_error_message() . PHP_EOL;
} else {
    echo get_class($editor) . PHP_EOL;
}
'

If WordPress returns:

WP_Image_Editor_GD

and thumbnails are generated correctly, WordPress has a usable image backend even without Imagick for that operation.

Current state What it means Next action
Imagick and GD available, WordPress selects Imagick Preferred editor is usable for this request Test the original operation
Imagick missing, WordPress selects GD WordPress has a fallback editor Check whether the affected plugin also supports GD
Imagick loaded, WordPress selects GD Loading the extension was not enough for Imagick to be selected Run WP_Image_Editor_Imagick::test()
Both extensions load, no editor selected Compatibility or MIME-specific requirements are failing Inspect the WordPress error and file type
GD works in WordPress, plugin still requires Imagick Plugin requirement differs from WordPress core Check the plugin's requirement rather than reinstalling GD

A warning that “Imagick is recommended” is not the same as an operation that cannot run without Imagick. Verify which condition you actually have.

What Should You Check If Both Imagick and GD Are Enabled but the Error Remains?

If web PHP confirms both imagick and gd are loaded, stop reinstalling the extensions. Identify the component producing the message and the stage at which image processing fails.

Identify Who Produces the Error

Determine whether the message comes from:

  • WordPress core;
  • a plugin;
  • a theme;
  • a custom PHP script;
  • an external image-processing integration.

A plugin can check directly for Imagick or for one specific capability while WordPress core continues to work through GD. That distinction changes the rest of the diagnosis.

Identify the Exact Operation

Record what fails:

  • uploading an image;
  • creating thumbnails;
  • editing or resizing media;
  • optimizing images;
  • creating WebP or AVIF output;
  • generating a PDF preview;
  • importing media or products.

Use a plain JPEG as a control. If JPEG upload and thumbnail generation work while PDF preview fails, extension installation is already a weak suspect.

Separate Editor Selection, File Loading and Saving

WordPress image processing has several stages, and an error at one stage should not be diagnosed as another.

The first stage is editor selection. Run:

wp eval '
$file = "/path/to/test.jpg";
$editor = wp_get_image_editor($file);

if ( is_wp_error($editor) ) {
    echo $editor->get_error_code() . ": ";
    echo $editor->get_error_message() . PHP_EOL;
} else {
    echo get_class($editor) . PHP_EOL;
}
'

If WordPress cannot select a usable implementation, it can return an image_no_editor error. That points toward editor availability or compatibility.

If an editor is selected but loading the source fails, wp_get_image_editor() can return the loading error from that editor. Now the problem is not “no editor exists.” The file itself, its path, its format or the library's ability to read it has become relevant.

Saving is another stage. A file can load successfully and still fail when WordPress tries to write the resized or converted result. That moves the investigation toward output-format support, filesystem permissions, disk or temporary storage, policy restrictions and resource limits.

Stage What success proves If it fails
PHP extension load PHP loaded Imagick or GD Check package, INI and startup errors
WordPress editor test WordPress accepts an editor implementation Check editor requirements and compatibility
Image load The editor can open the source file Check path, MIME type, format support and policy
Resize / transform The processing operation can run Check memory, resource limits and library errors
Save The result can be encoded and written Check format write support, permissions and storage

Check Logs During the Failed Request

Reproduce the failure while watching the logs that belong to the real web request:

  • WordPress debug.log when debugging is enabled appropriately;
  • PHP error log;
  • PHP-FPM log;
  • Nginx or Apache error log;
  • plugin-specific diagnostics.

A plugin may show only “ImageMagick unavailable,” while the PHP or FPM log shows something far more useful: unsupported format, failed delegate, permission error, memory problem or inability to write the output file.

If extension_loaded('imagick') and extension_loaded('gd') both return true in web PHP, installing those same extensions again is not a diagnostic step. Capture the failing request and move to the next layer.

Plugin isolation can still help, but use it as a controlled test. Disable the suspected component, repeat the same operation and record what changes. Turning off everything at once destroys useful evidence.

A 10-Minute Checklist for "ImageMagick or GD Not Installed"

The quickest reliable route is to check the stack in order: operating system, PHP CLI, web PHP, PHP-FPM, WordPress, then the real image operation.

  1. Identify where the warning comes from. WordPress core, a plugin, a theme or another PHP application?
  2. Open WordPress Site Health. Check Tools -> Site Health -> Info -> Media Handling and note the active editor.
  3. Check system ImageMagick. Run magick -version.
  4. Check PHP CLI modules. Run php -m | grep -Ei 'imagick|gd'.
  5. Inspect module details. Run php --ri imagick and php --ri gd.
  6. Identify CLI PHP. Run php -v, which php and php --ini.
  7. Fingerprint web PHP. Compare PHP version, SAPI, loaded php.ini, scanned INI files and extension state with CLI.
  8. If CLI and web differ, trace the domain to its handler. Follow the Nginx fastcgi_pass or Apache PHP handler to the correct PHP-FPM service or pool.
  9. Check WordPress compatibility. If Imagick loads but WordPress does not use it, run WP_Image_Editor_Imagick::test().
  10. If the extension is missing, enable or install it for the PHP environment serving the domain.
  11. Reload the correct PHP handler when required. Then repeat the web-side extension test.
  12. Run a real WordPress image test. Upload a normal JPEG or PNG and confirm thumbnail generation.
  13. Repeat the original failing operation. Test the same format, conversion, preview or plugin feature.
  14. If only one format fails, check capabilities rather than reinstalling. Inspect ImageMagick formats, policy, delegates and relevant logs.
  15. Remove temporary diagnostic files. Delete public phpinfo() and PHP test scripts when the diagnosis is complete.

At the end of the sequence, you should be able to describe the problem precisely:

  • ImageMagick is not installed at the operating-system level.
  • ImageMagick is installed, but PHP Imagick is not installed or configured for the site's PHP.
  • Imagick is configured but PHP cannot load it.
  • CLI PHP sees Imagick, but the web PHP or FPM pool does not.
  • Imagick loads, but WordPress rejects the Imagick editor.
  • WordPress works through GD and the missing Imagick warning belongs to a specific plugin requirement.
  • Imagick and GD both work for normal images, but one format is blocked by capability, policy, delegate or resource restrictions.
  • The editor loads the image but fails later during transformation or saving.

“ImageMagick is broken” is too broad to act on safely. A useful diagnosis names the exact layer that fails and the test that proved it.

Frequently asked questions
The command checks the system-level ImageMagick tool, not the PHP Imagick extension used by WordPress. Check web PHP, PHP-FPM and WordPress Site Health separately.
CLI PHP and the web PHP handler may use different binaries, INI files or FPM pools. WordPress may also reject Imagick if its editor compatibility test fails.
Check Tools -> Site Health -> Info -> Media Handling, or call wp_get_image_editor() with a real image and inspect the returned editor class.
Yes. WordPress can use WP_Image_Editor_GD when GD is available and supports the required operation. A plugin may still require Imagick for its own features.
WordPress performs additional compatibility checks for the Imagick classes, extension version and required methods. WP_Image_Editor_Imagick::test() can reveal this case.
That points away from a missing PHP extension. Check PDF support, ImageMagick policy, delegates and Ghostscript instead of reinstalling Imagick.
If the extension configuration changed, the PHP-FPM service serving the site may need to reload or restart. Verify the correct pool or handler first, then retest web PHP.
Related articles