Check whether your host can create WebP images
Find out in two minutes whether your WordPress host’s GD or Imagick can write WebP, what to ask support if not, and the GD-versus-Imagick catch.
WordPress does not convert images itself — it hands them to an image library on your server, either Imagick (ImageMagick) or GD. Every WebP plugin, and WordPress’s own WebP features, depend on that library having WebP support compiled in. If it does not, conversion fails, often without an error. Here is how to check before you blame the plugin.
Check in Site Health (no code)
- Go to Tools → Site Health and open the Info tab.
- Expand Media Handling.
- Note the Active editor —
WP_Image_Editor_ImagickorWP_Image_Editor_GD. - Find the supported formats line for that library (ImageMagick supported file formats or GD supported file formats) and look for WEBP.
If WEBP is listed for the active editor, your server can create WebP. If it is listed only for the other library, read the catch below.
The GD-versus-Imagick catch
When both are installed, WordPress uses Imagick first. On some hosts Imagick was built without WebP while GD has it, so Site Health shows WebP somewhere but saving a WebP still fails. Either ask the host to add WebP to Imagick, or tell WordPress to prefer GD with the wp_image_editors filter — the snippet is in Images are not converted to WebP.
Check from the command line
If you have SSH access, these one-liners answer the question directly. The first uses WordPress’s own wp_image_editor_supports() check:
# Can any WordPress image editor on this site write WebP? (WP-CLI)
wp eval 'var_dump( wp_image_editor_supports( array( "mime_type" => "image/webp" ) ) );'
# Does PHP's GD extension have WebP?
php -r 'var_dump( function_exists("gd_info") && ! empty( gd_info()["WebP Support"] ) );'
# Does Imagick have WebP?
php -r 'var_dump( class_exists("Imagick") && Imagick::queryFormats("WEBP") );'
Run the php lines with the same PHP version your site uses — the command-line PHP can differ from the web one.
What to ask your host
Send something like: “Please enable WebP support for PHP on my site — either GD compiled with libwebp or Imagick with the WebP delegate. Site Health → Info → Media Handling currently shows: [paste the Active editor and supported formats lines].” Most managed hosts can switch this on or move you to a PHP version that has it.
Once it says yes
Upload a JPEG and check that the Media Library shows a .webp file. With WebP Auto Convert active, every new JPEG and PNG upload is converted automatically, and the counters on its settings screen confirm it is working.
Frequently asked questions
Can I upload WebP files even if my server cannot create them?
Usually yes. Uploading a ready-made WebP needs far less than creating one, but WordPress still needs WebP support in GD or Imagick to make thumbnails from it. Without it you may see “This image cannot be processed by the web server”.
Is GD or Imagick better for WebP?
Both produce good lossy WebP files for photos. Imagick handles very large images and lossless WebP better; GD is more often available on cheap hosting. Use whichever your host supports with WebP.
Does PHP version matter?
Indirectly. WebP support depends on how PHP and its extensions were built, not on the version number, but older PHP builds are more likely to lack it. Moving to a current PHP version on your host often fixes it.
Did this answer the question? No — open a support request