WP-Optimize Releases WebP Image Compression Feature
Automatic conversion of JPEG and PNG to WebP images
The latest version of WP-Optimize now features the option to automatically convert and compress images using the WebP image format. This optimized image format helps to ensure a fast, efficient page speed and positive user experience.
WebP images are up to 26% smaller compared to PNG
WebP images are a more modern alternative to JPEG and PNG images that provide superior lossless and lossy compression for website imagery. Through the use of WebP, images are rich and high in quality, but file sizes are smaller, up to 26% smaller when compared to PNG images. This results in a faster website, which has lots of benefits for SEO and user experience. Google recommends using WebP images for all your website imagery.
Previously, the WebP version of an image was only served if the image had already been compressed and converted within WP-Optimize.
Images are now converted automatically and served on-the-fly to web visitors
However, thanks to our On-The-Fly WebP update, that is no longer the case. Now, when a visitor comes to the site, WP-Optimize dynamically generates the WebP version of your site’s images and serves that instead. This process occurs for the first visitor only – subsequent visitors are directly served the WebP version of the image, leading to a faster, more efficient site and an improved user experience.
Notes and important information:
Compatibility and Server Requirements
This new feature only works on Apache/LiteSpeed servers, if all the required Apache modules are enabled by your hosting server.
Disabling the “On-the-Fly WebP Conversion” Feature
By default, if the WebP feature is enabled, the “On-the-Fly WebP Conversion” feature is also enabled. Most users will benefit from this feature, so we haven’t provided an option to disable it on the settings panel. If you still want to disable it, just add the following line to your website’s wp-config.php file:
define( ‘WPO_DISABLE_WEBP_ON_DEMAND’, true );
How to Verify if the Feature is Working
To check if the feature is working, navigate to the wp-content/uploads/ directory using FTP. If you do not see an .htaccess file, it means the feature is not working. If you see an .htaccess file, open it and check for the following code:
# BEGIN WP-Optimize WebP Rules
<IfModule mod_rewrite.c>
………
# Redirect images to webp-on-demand.php (if browser supports webp)
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (?i)(.*)(\.jpe?g|\.png)$
RewriteRule (?i).*$ /wp-content/plugins/wp-optimize-premium/webp/webp-on-demand.php
………
</IfModule>
# END WP-Optimize WebP Rules
If you find this code, the feature is working correctly.
Fast, efficient, optimized website performance
WP-Optimize helps you to boost the performance of your WordPress website. It will shrink your database size, compress large images, clean up spam and unapproved comments, report on database tables with overhead and wasted space, and cache your site. The result is a leaner, faster, more organised website. Our Premium version features enhanced functionality, including multisite support, sophisticated scheduling options, and is compatible with campaign tracking queries like UTM tags If you think WP-Optimize could be the right solution for your website, you can learn more.
Recent Comments