How to Use WebP Express with Pre-Existing WebP Images
Content
Many users migrate to the WebP Express plugin after already having a library of WebP images, perhaps generated by another plugin or service. A common question is whether WebP Express can recognize and use these pre-existing files instead of generating new ones, thereby saving server resources and time.
The Problem: Duplicate Conversions and Unused Files
By default, WebP Express is configured to convert images on the fly as they are requested by a visitor's browser. If you already have a complete set of WebP images, this default behavior is inefficient. It could lead to the plugin generating a second set of WebP files, wasting disk space and inodes, or it might not use your pre-existing images at all.
The Solution: Configure "No Conversion" Mode
Based on the sample threads, the WebP Express team has a built-in solution for this exact scenario. To make the plugin work with your pre-generated WebP files, you need to change its operation mode.
- Navigate to the WebP Express settings in your WordPress admin dashboard.
- Locate the Operation mode setting.
- Change it to "No conversion".
In this mode, the plugin's conversion functionality is completely disabled. It will not create any new WebP files. Instead, it assumes that for every JPEG or PNG file, there is a corresponding WebP file located in the exact same directory. The WebP file must have the same name as the original, with a .webp extension appended (e.g., image.jpg.webp). The plugin will then create server rewrite rules to seamlessly serve the existing WebP images to supported browsers.
Important Considerations
- File Structure: Your pre-existing WebP files must be in the same folder structure as your original images for the plugin to find them. The "No conversion" mode does not use the separate "Image roots" destination structure.
- New Images: A key limitation of this mode is that it will not automatically convert any new images you upload after enabling it. You will need to use your external conversion method to generate WebP files for new uploads and place them in the correct folder for the plugin to serve them.
- CDN & Offload Compatibility: If you use a plugin like WP Offload Media to serve images from Amazon S3 or another CDN, ensure your WebP files are also offloaded to the same storage bucket with the correct path and file names for the redirection to work properly.
This configuration allows you to leverage the powerful serving capabilities of WebP Express while maintaining full control over the image conversion process itself.
Related Support Threads Support
-
Only convert imageshttps://wordpress.org/support/topic/only-convert-images/
-
Feature request: Convert the image in to webp upon upload. Then delete originalhttps://wordpress.org/support/topic/feature-request-convert-the-image-in-to-webp-upon-upload-then-delete-original/
-
Feature Request – Shortcodeshttps://wordpress.org/support/topic/feature-request-shortcodes-2/
-
What about alt texts ?https://wordpress.org/support/topic/what-about-alt-texts/
-
Smush Pro compatible?https://wordpress.org/support/topic/smush-pro-compatible/
-
Using the PlugIn without the need of converting the imageshttps://wordpress.org/support/topic/using-the-plugin-without-the-need-of-converting-the-images/
-
What about converting existing images?https://wordpress.org/support/topic/what-about-converting-existing-images/
-
Different plugin for webP conversion?https://wordpress.org/support/topic/different-plugin-for-webp-conversion/
-
How to configurehttps://wordpress.org/support/topic/how-to-configure-10/
-
Is it possible to upload webP images directly?https://wordpress.org/support/topic/is-it-possible-to-upload-webp-images-directly/
-
Switching to WebP and SEOhttps://wordpress.org/support/topic/switching-to-webp-and-seo/
-
A question about bulk delete/bulk convert webphttps://wordpress.org/support/topic/a-question-about-bulk-delete-bulk-convert-webp/
-
Does your plugin works for background url images in a css filehttps://wordpress.org/support/topic/does-your-plugin-works-for-background-url-images-in-a-css-file/
-
Bulk convert?https://wordpress.org/support/topic/bulk-convert/
-
S3 offload compatibility, and image resizing?https://wordpress.org/support/topic/s3-offload-compatibility-and-image-resizing/
-
Lossless Conversion?https://wordpress.org/support/topic/lossless-conversion/
-
Can I replace existing images with WebP version?https://wordpress.org/support/topic/can-i-replace-existing-images-with-webp-version/
-
Can I convert images to webp with a cron job?https://wordpress.org/support/topic/can-i-convert-images-to-webp-with-a-cron-job/
-
WebP Express + Image Compressor (Proc. Order)https://wordpress.org/support/topic/webp-express-image-compressor-proc-order/
-
Some webp are larger than the original pnghttps://wordpress.org/support/topic/some-webp-are-larger-than-the-original-png/
-
Feature request – down conversionhttps://wordpress.org/support/topic/feature-request-down-conversion/
-
Questions about featureshttps://wordpress.org/support/topic/questions-about-features-8/
-
SEO Questionhttps://wordpress.org/support/topic/seo-question-20/
-
Lossy WebP Option?https://wordpress.org/support/topic/lossy-webp-option/
-
For jpeg (mozjpeg), too?https://wordpress.org/support/topic/for-jpeg-mozjpeg-too/
-
webp to jpg?https://wordpress.org/support/topic/webp-to-jpg/
-
Work with reSmush.it !https://wordpress.org/support/topic/work-with-resmush-it/
-
.WEBM Possible?https://wordpress.org/support/topic/webm-possible/
-
Copy webp images from another serverhttps://wordpress.org/support/topic/copy-webp-images-from-another-server/
-
both option tag convert & url changehttps://wordpress.org/support/topic/both-option-tag-convert-url-change/
-
What If I convert images to webp and delete the orig jpgs…https://wordpress.org/support/topic/what-if-i-convert-images-to-webp-and-delete-the-orig-jpgs/
-
Already existing webp files? Migrating from other pluginhttps://wordpress.org/support/topic/already-existing-webp-files-migrating-from-other-plugin/
-
Alternatives to the pluginhttps://wordpress.org/support/topic/alternatives-to-the-plugin/
-
Does it already support just converting to webp ignoring old browsers?https://wordpress.org/support/topic/does-it-already-support-just-converting-to-webp-ignoring-old-browsers-3/