How it works

Version: 2.8.1

How it works

Think of three moments:

1. Someone opens a page. The plugin looks for photos in the HTML. SVG files are ignored. If a WebP (or AVIF) copy already exists, the page is pointed at that copy. If not, the plugin can create the copy during that page load, then point at it, as long as there is enough time and memory. These copies are always full size.

2. You click Generate Images. The plugin lists photos in the folders you ticked, then converts them one by one while you wait in the administrator. These copies are also always full size.

3. You upload a photo (when Convert on upload is on). The plugin makes the WebP or AVIF copy right after the file is saved in the Media Manager, JCE, or SP Page Builder. The original stays, unless you also turn on Also downscale the original (modifies your file), and then only a brand-new file is resized. Replacing or editing an existing image in the Media Manager, or overwriting a file in JCE, leaves that original at its current size; the WebP or AVIF copy is still size-limited as usual. Files added by FTP are not converted in that moment; use a scheduled task or wait for a page view. See the Convert on Upload page.

Where files go: with the default output folder webp, a file images/stories/photo.jpg becomes images/webp/stories/photo.webp. The original photo.jpg stays.

If you set Maximum width (px) or Maximum height (px) on the Convert on Upload tab, those limits apply only to uploads and to the scheduled task. Copies made on upload or by the scheduled task are scaled to fit (same proportions, never upsized). Copies made on a page view or with Generate Images stay at full size. If a limit is set, the scheduled task later resizes those full-size copies in the background. If you change a limit, the task regenerates only copies that are still larger than the new limit. If you turn both limits back to 0, already-resized copies stay as they are.

WebP and AVIF copies are made upright, including portrait photos from a phone. If Image Format is Both, supporting browsers can get AVIF, then WebP, then the original. You do not have to write that HTML yourself. If the server cannot create an AVIF file, the plugin writes a WebP copy instead and records a note in the Joomla log.