DEV Community

Cover image for WebP for WordPress, On Demand
Christian Ahrweiler
Christian Ahrweiler

Posted on

WebP for WordPress, On Demand

WebP is useful for WordPress sites.

Smaller image files can improve loading speed, reduce bandwidth, and make pages feel faster. But converting images should not become another maintenance task.

Many WordPress image optimization plugins use batch conversion. They scan the uploads folder and convert everything they find, including thumbnails and image sizes that may never be requested.

That works, but it is not always efficient.

A WordPress media library can contain many files. Some are old. Some are unused. Some are generated thumbnail sizes that never appear on the frontend. Converting all of them upfront creates extra work and extra files before anyone even asks for the image.

There is a simpler approach.

Convert images on demand.

When a visitor requests an image, the WebP version can be created if it does not already exist. After that, the ready WebP file can be served directly.

No full batch job.
No manual conversion workflow.
No extra action required for every upload.

That is what atec WebP is built for.

It works automatically after activation and uses rewrite rules to serve WebP versions when the browser supports WebP. If the converted file already exists, it is served. If it does not exist yet, the image is converted on demand.

The original WordPress media library stays unchanged.

Converted files stay next to the original images and can be deleted again without affecting the originals.

That keeps the workflow clean.

Upload images as usual.
Let WebP conversion happen when needed.
Avoid converting files nobody requests.

atec WebP supports common source formats like BMP, GIF, PNG, and JPEG, using GD or ImageMagick where available.

No big batch process.
No unnecessary conversion of everything.
Just WebP when it is actually needed.

atec WebP is available from atec Plugins:

https://atecplugins.com/

Top comments (0)