Loading...
banner plugin Image
woo-image

WebP Express

By rosell.dk

Description

More than 9 out of 10 users are using a browser that is able to display webp images. Yet, on most websites, they are served jpeg images, which are typically double the size of webp images for a given quality. What a waste of bandwidth! This plugin was created to help remedy that situation. With little effort, WordPress admins can have their site serving autogenerated webp images to browsers that supports it, while still serving jpeg and png files to browsers that does not support webp.

The plugin uses the WebP Convert library to convert images to webp. WebP Convert is able to convert images using multiple methods. There are the local conversion methods: imagick, cwebp, vips, gd. If none of these works on your host, there are the cloud alternatives: ewww (paid) or connecting to a WordPress site where you got WebP Express installed and you enabled the web service functionality.

The plugin supports different ways of delivering webps to browsers that supports it: By routing jpeg/png images to the corresponding webp or to the image converter if the image hasn't been converted yet. By altering the HTML, replacing image tags with picture tags. Missing webps are auto generated upon visit. By altering the HTML, replacing image URLs so all points to webp. The replacements only being made for browsers that supports webp. Again, missing webps are auto generated upon visit. In combination with Cache Enabler, the same as above can be achieved, but with page caching. You can also deliver webp to all browsers and add the webpjs javascript, which provides webp support for browsers that doesn’t support webp natively. However, beware that the javascript doesn’t support srcset attributes, which is why I haven’t added that method to the plugin yet.

The plugin implements the WebP On Demand solution and builds on a bunch of open source libraries. Benefits include much faster load time for images in browsers that supports webp, better user experience, better ranking in Google searches, and less bandwidth consumption. It is great for the environment too, reducing network traffic reduces electricity consumption which reduces CO2 emissions.

Limitations include that the plugin should now work on Microsoft IIS server, but it has not been tested thoroughly.

Other Notable Features

Here are a few other notable features of this free WebP Express plugin.

check-fill
WebP images
check-fill
image conversion
check-fill
performance optimization

Screenshots

FAQ

Verifying that the plugin works in “Varied image responses” mode
1. Make sure at least one of the conversion methods are working. It should have a green checkmark next to it.
2. If you haven’t saved yet, click “Save settings”. This will put redirection rules into .htaccess files in the relevant directories (typically in uploads, themes and wp-content/webp-express/webp-images, depending on the “Scope” setting)
3. I assume that you checked at least one of the checkboxes in the .htaccess rules section – otherwise you might as well change to “CDN friendly” mode. The first
4. Click the “Live test” buttons to see that the enabled rules actually are working. If they are not, it could be that the server needs a little time to recognize the changed rules.

The live tests are quite thorough and I recommend them over a manual test. However, it doesn’t hurt to do a manual inspection too.

Doing a manual inspection

Note that when WebP Express is serving varied image responses, the image URLs still points to the jpg/png. If the URL is visited using a browser that supports webp, however, the response will be a webp image. So there is a mismatch between the file extension (the filename ends with “jpg” or “png”) and the file type. But luckily, the browser does not rely on the extension to determine the file type, it only looks at the Content-Type response header.

To verify that the plugin is working (without clicking the test button), do the following:

  • Open the page in a browser that supports webp, ie Google Chrome
  • Right-click the page and choose “Inspect”
  • Click the “Network” tab
  • Reload the page
  • Find a jpeg or png image in the list. In the “type” column, it should say “webp”

You can also look at the headers. When WebP Express has redirected to an existing webp, there will be a “X-WebP-Express” header with the following value: “Redirected directly to existing webp”. If there isn’t (and you have checked “Enable redirection to converter”), you should see a “WebP-Convert-Log” header (WebP-Express uses the WebP Convert for conversions).

Contributors and developers

“WebP Express” is open source software. The following people have contributed to this plugin.

WPS
Exclamation-Image

6.56

Average

Star-Image

Ratings

4.4 out of 5 | 160
History-Image

Version

0.25.14
calendar-Image

Last updated

2 weeks ago
Star-Image

Active installations

300,000+
Star-Image

WordPress version

6.9 or higher
php-Image

PHP version

5.6 or higher
translate-Image

Languages

27

Tags

Images,Performance,Webp