Option to Remove File Extension from Converted WebP
I would like the option to set my converted .webp URLS explicitly to “.webp” instead of appending the original extension.
Example:
Original Image URL Before Conversion: https://example.com/image.jpg
URL After Ewww WebP Conversion:
https://example.com/image.jpg.webp
The Ideal WebP URL:
https://example.com/image.webp
The plugin “WebP Express” allows you to set the file extension via the following option:This works perfectly, although WebP Express is not compatible with the “WP Offload Media” plugin which is why I’m looking to use Ewww since Ewww has custom functionality surrounding the function:
ewww_image_optimizer_as3cf_attachment_file_path
Any help with this is greatly appreciated. I personally think that the appended file extensions just add junk to the URL. Adam did however tell me that this is the most comprehensive solution to not only cover different server types, etc. but to also provide fallback options.
This is why I believe the option toggle provided above would be a great addition to the plugin. Then it covers 100% of use cases.
Subscribe to post
Get notified by email when there are changes.