Why Are My Images Still JPG or PNG? Troubleshooting Converter for Media WebP Issues
Content
If you've installed the 'Converter for Media – Optimize images | Convert WebP & AVIF' plugin but your images are still loading as JPG or PNG in the browser, you're not alone. This is one of the most common support questions for this plugin. The good news is that the issue is almost always related to a few specific configuration or environmental factors, not a fundamental flaw in the plugin.
Why This Happens: It's Usually Not a Bug
The plugin is designed to work transparently. It converts your images to WebP/AVIF and stores them in a separate directory (/wp-content/uploads-webpc/). When a browser that supports modern formats requests an image, the server's rewrite rules (in your .htaccess or Nginx config) silently deliver the converted version. The image URL in your page's HTML will always show the original extension (e.g., .jpg). You cannot check for WebP by looking at the URL or right-clicking to save the image.
How to Properly Check if the Plugin is Working
Before troubleshooting, confirm the plugin is actually not working. The correct method is to use your browser's Developer Tools:
- Right-click on your webpage and select Inspect.
- Go to the Network tab.
- Refresh the page.
- In the network log, look for image requests (you can filter by Img).
- Click on an image request and look at the Response Headers. If the
content-typeheader saysimage/webporimage/avif, the plugin is working correctly. If it saysimage/jpegorimage/png, then proceed with the solutions below.
Common Solutions to WebP Conversion Issues
1. Clear All Caches
This is the most frequent culprit. A server-level cache (Nginx, Varnish, Redis, etc.) or a hosting provider's cache might be serving an old, cached version of the original image. Clear your:
- WordPress caching plugin cache
- Server-level cache (if you have access)
- CDN cache (e.g., Cloudflare)
- Browser cache (test in an incognito window after clearing)
2. Verify Server Configuration Mode
The plugin offers different modes of operation. If you are on an Nginx server, the recommended via .htaccess mode will not work. You must:
- Select the Bypassing Nginx mode in the plugin settings.
- Manually apply the configuration code the plugin provides to your Nginx server block configuration file.
3. Check for Custom Uploads Directory
The plugin by default only works with images in the standard WordPress uploads directory (/wp-content/uploads/). If your site stores images in a custom directory (e.g., /pic/uploads/), the plugin will not convert them. You must use a code snippet to define the custom path. Add the following to your theme's functions.php file:
add_filter( 'webpc_dir_name', function( $path, $directory ) {
if ( $directory !== 'uploads' ) {
return $path;
}
return 'pic/uploads'; // Replace with your custom directory
}, 10, 2 );
4. Force Redirections for External Domains
If your site uses a CDN or serves images from a different domain (e.g., images.example.com), the redirects may fail. In the plugin's advanced settings, enable the option Force redirections to WebP for external domains.
5. Run the Bulk Optimization
Installing the plugin is not enough. You must convert your existing images. Go to Converter for Media > Bulk Optimization and run the process to generate WebP/AVIF versions of all your media files. New uploads are typically converted automatically, but the initial library must be processed manually.
6. Check for Plugin or Server Conflicts
Other plugins that modify images or alter server rules (like Safe SVG) can sometimes interfere with the rewrite rules. Try temporarily disabling other plugins to see if the issue resolves. Also, ensure your server's PHP extensions (GD or Imagick) are installed and enabled, as they are required for image processing.
When Conversion Might Not Happen
It's important to know that the plugin is designed to be efficient. It will not serve a WebP/AVIF version if the converted file would be larger than the original image. In these cases, the original file is kept to avoid increasing page load times. This is intentional behavior, not an error.
By methodically working through these common issues, most users can successfully resolve problems with images not being served in WebP format. The key is to use the browser's Network tab for accurate verification and to remember that the plugin's operation is meant to be invisible to the end-user.
Related Support Threads Support
-
Some pics not showing on iOS (Need to roll back to JPG)https://wordpress.org/support/topic/some-pics-not-showing-on-ios-need-to-roll-back-to-jpg/
-
Image converted to WebP but deletedhttps://wordpress.org/support/topic/image-converted-to-webp-but-deleted/
-
How to make all photos in the webp?https://wordpress.org/support/topic/how-to-make-all-photos-in-the-webp/
-
images not WebPhttps://wordpress.org/support/topic/images-not/
-
I’m unable to convert my media file to webp formathttps://wordpress.org/support/topic/im-unable-to-convert-my-media-file-to-webp-format/
-
How to use converted webp imageshttps://wordpress.org/support/topic/how-to-use-converted-webp-images/
-
Generates .svg.webp.crashed filehttps://wordpress.org/support/topic/generates-svg-webp-crashed-file/
-
Images don’t convert to .webphttps://wordpress.org/support/topic/images-dont-convert-to-webp/
-
Image Extentionhttps://wordpress.org/support/topic/image-extention/
-
WebP converter stopped workinghttps://wordpress.org/support/topic/webp-converter-stop-working/
-
WEBP images noy generatedhttps://wordpress.org/support/topic/webp-images-noy-generated/
-
Conversion to Webphttps://wordpress.org/support/topic/conversion-to-webp-2/
-
No change in image typehttps://wordpress.org/support/topic/no-change-in-image-type/
-
I don’t think the plugin work properly and did not its jobhttps://wordpress.org/support/topic/i-dont-think-the-plugin-work-properly-and-did-not-its-job/
-
img are still jpg/pnghttps://wordpress.org/support/topic/img-are-still-jpg-png/
-
How to force webp extension after conversion?https://wordpress.org/support/topic/how-to-force-webp-extension-after-conversion/
-
Images are not converted to WebPhttps://wordpress.org/support/topic/images-are-not-converted-to-webp/
-
Images not converted to WEBP after running bulk optimisationhttps://wordpress.org/support/topic/images-not-converted-to-webp-after-running-bulk-optimisation/
-
Images are still serving up JPGs and PNGshttps://wordpress.org/support/topic/images-are-still-serving-up-jpgs-and-pngs/
-
Can’t see my WebP images converted and not replacing old oneshttps://wordpress.org/support/topic/cant-see-my-webp-images-converted-and-not-replacing-old-ones/
-
After successfull “Regenerate All” images are still not served as WebPhttps://wordpress.org/support/topic/after-successfull-regenerate-all-images-are-still-not-served-as-webp/
-
Webp image not appliedhttps://wordpress.org/support/topic/webp-image-not-applied/
-
animated gif to animated webphttps://wordpress.org/support/topic/animated-gif-to-animated-webp/
-
Do I need to have the plugin active?https://wordpress.org/support/topic/do-i-need-to-have-the-plugin-active/
-
Image not converted to webp when uploadedhttps://wordpress.org/support/topic/image-not-converted-to-webp-when-uploaded/
-
Plugin does not convert images automaticallyhttps://wordpress.org/support/topic/plugin-does-not-convert-images-automatically/
-
Don’t understand how it is supposed to workhttps://wordpress.org/support/topic/dont-understand-how-it-is-supposed-to-work/
-
Media Library saves uploaded .jpg as .jpg.webphttps://wordpress.org/support/topic/media-library-saves-uploaded-jpg-as-jpg-webp/
-
WEBP-JPG ?https://wordpress.org/support/topic/webp-jpg/
-
Webp Conversion not longer workinghttps://wordpress.org/support/topic/webp-conversion-not-longer-working/
-
jpg still served after uploadhttps://wordpress.org/support/topic/jpg-still-served-after-upload/
-
The transparency problem with the PNG file.https://wordpress.org/support/topic/the-transparency-problem-with-the-png-file/
-
Images not convertedhttps://wordpress.org/support/topic/images-not-converted/
-
Webp Not Workinghttps://wordpress.org/support/topic/webp-not-working-10/
-
Problem displaying webp format after optimizationhttps://wordpress.org/support/topic/problem-displaying-webp-format-after-optimization-2/
-
Did not convert images to WebPhttps://wordpress.org/support/topic/did-not-convert-images-to-webp/
-
How to change post-thumbnail to webp?https://wordpress.org/support/topic/how-to-change-post-thumbnail-to-webp-2/
-
images converted to webp, but not usedhttps://wordpress.org/support/topic/images-converted-to-webp-but-not-used/
-
jpeg Images not getting converted to webphttps://wordpress.org/support/topic/jpeg-images-not-getting-converted-to-webp/
-
Convert from Webp to jpghttps://wordpress.org/support/topic/convert-from-webp-to-jpg/
-
Using WebP with an S3 buckethttps://wordpress.org/support/topic/using-webp-with-an-s3-bucket/
-
[NSFW] WebP loading failurehttps://wordpress.org/support/topic/webp-loading-failure/
-
Nothing has happened???https://wordpress.org/support/topic/nothing-has-happened-2/
-
Images under image URL’s in WebP – i need jpg/pnghttps://wordpress.org/support/topic/images-under-image-urls-in-webp-i-need-jpg-png/
-
Images not serving in Webp checked in Browser network tabhttps://wordpress.org/support/topic/images-not-serving-in-webp-checked-in-browser-network-tab/
-
Type column is not webp after Regenerate imageshttps://wordpress.org/support/topic/type-column-is-not-webp-after-regenerate-images/
-
Not Seeing ‘webP’ format appliedhttps://wordpress.org/support/topic/not-seeing-webp-format-applied/
-
How to test if images have been converted to webP?https://wordpress.org/support/topic/how-to-test-if-images-have-been-converted-to-webp/
-
Not showing WEBP still JPGhttps://wordpress.org/support/topic/not-showing-webp-still-jpg/