Smush fails WebP conversion after image upload
By Sophie Adams Updated 10 min read
On this page (13 sections)
- The short version
- Smush fails WebP conversion after image upload: what should I check?
- How do I confirm Auto-Convert is enabled in Smush?
- How can I test if my server supports WebP encoding?
- What do Smush failure logs look like and how do I read them?
- Which files in uploads should I inspect to confirm missing WebP files?
- How much memory do I need and how should I test it?
- How do I fix permission errors seen in logs?
- How to locate and enable Smush logs?
- How do I isolate conflicts with other plugins or CDNs?
- How does Smush handle image uploads and background processing?
- How to confirm WebP is actually served to browsers
- Questions people still ask
In short: Smush often fails to make WebP files because a plugin setting is off, the server lacks WebP support, PHP runs out of memory during encoding, or another tool intercepts the upload. Test each item in the checklist below, following the commands and log checks provided.
Part of our guide on web page slowdown on shared hosting
Smush can appear to succeed while skipping WebP files. The uploads folder and Smush logs tell the real story.
| First step | Confirm Auto-Convert is enabled in Smush settings |
|---|---|
| Server tests | Run php and convert commands shown below |
| Memory note | Large images can use tens to hundreds of MB RAM during conversion |
| Conflict test | Temporarily deactivate other image plugins and CDN image features |
The short version
- Run the quick troubleshooting checklist first: Auto-Convert, server checks, memory, conflicts
- Test libgd and ImageMagick with the exact commands below and read the sample outputs
- Large images can require tens to hundreds of megabytes of RAM. Increase memory in steps and retest
- Check Smush > Tools > Logs for failure lines. Sample log formats and interpretations are included
Smush fails WebP conversion after image upload: what should I check?
Follow these four steps in order. Do each one and test with a representative image after.
This runs fast and isolates the usual problems: plugin setting, server tools, memory and conflicts.
- 1. Confirm Auto-Convert is on in Smush settings (see version note below).
- 2. Run the PHP and ImageMagick tests shown and read the example outputs.
- 3. If conversions fail for large images, increase PHP memory in steps and retest.
- 4. Deactivate other image optimizers and CDN image conversion, then test again.
How do I confirm Auto-Convert is enabled in Smush?
Smush creates WebP only when its Local WebP convert option is enabled. The exact label and tab can vary by Smush version and by whether you use the free or pro build. Behavior may vary by version.
Open Smush in the WordPress admin and look for the Local WebP or WebP settings area. Confirm the convert/upload option is enabled and that JPG and PNG formats (if present) are selected. For the detail, see our notes on wordpress 2mb upload limit how to raise.
- Go to Plugins > Installed Plugins and confirm the Smush plugin version in use
- Open Smush in the WordPress admin menu
- Find the Local WebP or WebP settings area (labels vary by version) and enable the Auto-Convert/Convert on upload option
- Save settings and clear your site cache
How can I test if my server supports WebP encoding?
Smush uses PHP's GD functions or ImageMagick to encode WebP. You must test both if your host might use either.
Many hosts provide libgd or ImageMagick with WebP support, but some do not. Verify support with the commands below or ask your host to run them.
| Tool | Command to run | Success example (example output) | Failure example (example output) | What it means and next step |
|---|---|---|---|---|
| PHP libgd (imagewebp) | php -r 'var_dump(function_exists("imagewebp"));' | bool(true) | bool(false) | True means PHP can call imagewebp. False means libgd lacks WebP support. Ask host to enable libwebp or provide an updated libgd. |
| ImageMagick | convert -list format | grep -i webp | WEBP* rw+ WebP Image | (no output) | A line with WEBP shows ImageMagick can read and write WebP. No output means ImageMagick lacks WebP delegates; ask host to recompile with libwebp. |
| PHP extensions | php -r 'echo json_encode(get_loaded_extensions());' | ["gd","imagick",…] | [] or missing gd/imagick | Shows installed PHP extensions. If gd or imagick are missing, ask your host to install them. |
What do Smush failure logs look like and how do I read them?
Smush writes actions and failures under Smush > Tools > Logs. The exact log lines depend on the Smush version and server environment. Below are realistic sample lines you may find and how to act on each. We cover core web vitals lazyload issue in its own article.
If your logs do not show these lines, Smush might not be reaching the point of conversion because another plugin or the server blocked it earlier.
- Sample: [TIMESTAMP] INFO: Uploaded image.jpg – queued for conversion as image.webp
- Sample: [TIMESTAMP] ERROR: image.jpg – conversion failed: memory exhausted (Allowed memory size exhausted)
- Sample: [TIMESTAMP] ERROR: image.jpg – conversion failed: permission denied when writing image.webp
- Sample: [TIMESTAMP] ERROR: image.jpg – conversion failed: missing function imagewebp
- Sample: [TIMESTAMP] INFO: image.jpg – skipped because another optimizer altered the file
Which files in uploads should I inspect to confirm missing WebP files?
Look directly in wp-content/uploads. Smush creates .webp files beside the originals, using the same base filename.
Check exact paths and filenames to avoid chasing the wrong files. There is more on wordpress caching without plugins in a separate guide.
- Example path: wp-content/uploads/2025/11/image.jpg and wp-content/uploads/2025/11/image.webp
- If you use subfolders or year-month organization, drill into the proper month folder
- Smush preserves the base name. If the original is image-1000×600.jpg, the webp will usually match image-1000×600.webp
How much memory do I need and how should I test it?
Encoding a large image can use tens to hundreds of megabytes of RAM depending on pixel dimensions and color depth. Exact consumption varies by image and by how PHP and the image library were built.
Measure on your setup. Start with your current memory_limit. Try converting a representative large image and watch for 'memory exhausted' errors. When a conversion fails, increase memory in steps and retest.
- Note current memory: visit Smush > Tools > System Information and read PHP Memory Limit
- Test with a representative large image. Upload and check Smush logs for memory errors
- If you see memory exhausted, edit wp-config.php to raise WP_MEMORY_LIMIT to the next step (for example from 128M to 256M)
- Retest the same image. If it still fails, increase again and retest until it succeeds or your host rejects the change
How do I fix permission errors seen in logs?
Permission problems stop PHP from writing .webp files. Fixing them prevents repeated failures and avoids confusing memory or library troubleshooting. If that sounds like your situation, read up on resolving cache detection problems next.
Check ownership and file permissions for the uploads tree. PHP’s process user must be able to write to those directories.
- Check ownership: on a Linux host run ls -la wp-content/uploads and look for the webserver user (www-data, apache, nginx)
- Permissions: directories usually need 755 and files 644. Avoid 777 on production systems.
- To fix ownership, run chown -R www-data:www-data wp-content/uploads (replace www-data with your webserver user).
- To fix permissions, run find wp-content/uploads -type d -exec chmod 755 {} + and find wp-content/uploads -type f -exec chmod 644 {} +
- If you cannot change them, contact your host.
How to locate and enable Smush logs?
Find Smush logs inside WordPress admin under Smush > Tools > Logs. UI labels and exact location may vary by Smush version.
If you cannot find logs in the UI, Smush sometimes writes logs to wp-content/uploads/smush/logs or wp-content/plugins/wp-smush-pro/logs. People in this spot often ask about amazon links break after redirect as well.
Check those folders if the UI shows no logs or if your version has a different UI structure.
- Open WordPress admin menu
- Go to Smush > Tools (or Smush > Settings > Tools in some versions)
- Find the Logs tab or section and enable logging if disabled
- Upload test images and review new log entries
- If logs are not visible, check the file paths above in your FTP or hosting file manager
How do I isolate conflicts with other plugins or CDNs?
Other local optimizers and CDN-level image conversion commonly block Smush. Test by deactivating possible culprits and by disabling CDN image processing temporarily.
Test methodically. Deactivate one thing at a time and retest with the same image to find the blocker.
- On Plugins > Installed Plugins, deactivate other image optimizers like ShortPixel, EWWW, Imagify, etc.
- If you use a CDN with image features (Cloudflare Polish, Bunny Optimizer, etc.), toggle that feature off or pause the CDN
- Clear caches and upload your test image and check uploads folder and Smush logs
- Reactivate items one at a time to identify which one conflicts
How does Smush handle image uploads and background processing?
Smush attaches to WordPress upload hooks to convert images on upload. Another plugin acting earlier can block or alter the file before Smush processes it.
Smush also runs bulk optimizations in background jobs it manages. These jobs are less affected by upload-time conflicts and run asynchronously after upload.
- Live uploads: Smush hooks into the upload process. If another plugin processes the file first, Smush may see an altered or locked file.
- Bulk optimization: Smush runs its own background queue. This runs after upload and is less affected by upload-time hooks.
- If you rely on immediate conversion, test live uploads. If you can accept delayed conversion, run Bulk Smush to regenerate files.
How to confirm WebP is actually served to browsers
Finding .webp files in uploads proves Smush created them. Confirming the browser receives WebP proves your site serves them.
Use browser developer tools to inspect image element sources or check network requests directly.
- Open a page with the test image in Chrome or Edge
- Right-click the image and choose Inspect
- Look at src or srcset attributes for .webp URLs and check the network request's Content-Type header
- If .webp files exist but the browser receives JPG/PNG, clear WordPress, plugin and CDN caches and retest
Questions people still ask
Does Smush convert images uploaded before I turned on the setting?
No. Live uploads are converted only if the convert-on-upload option was enabled at upload time. Use Smush > Bulk Smush to convert existing images. Bulk jobs run in batches and may take minutes or hours depending on library size.
Can I use Smush together with CDN image conversion?
You can, but running both is inefficient and can cause conflicts. If your CDN converts images at the edge, consider turning off Smush's local WebP conversion. If you want local copies too, test to ensure the CDN does not rewrite or block access to the local .webp files.
Why are some WebP files larger than the originals?
WebP can be larger for some image types such as screenshots, noisy photos or images with lots of fine detail. If the WebP is larger, Smush or your serving rules should fall back to the original format. If not, exclude those images in Smush's settings.
What if I deactivate Smush after it created WebP files?
The .webp files remain in uploads. WordPress stops serving them if Smush provided the rewriting. If you reactivate Smush, it will generally resume using the existing .webp files.