Everything you'd want to know before you install.
A detailed look at how WebP & AVIF Image Optimizer for PrestaShop works, why we built it the way we did, and the thinking behind the features above.
Lightweight images, with no external dependency
The WebP & AVIF Image Optimizer genuinely converts and compresses your store's files, locally, at the quality you choose. Unlike subscription services that send your images to their servers and bill by volume, everything happens on your own hosting: no quota, no credits, your files never leave your store. The module automatically detects the best available engine — Imagick, GD or the cwebp and avifenc binaries — and switches between them depending on the format.
Truly transparent delivery
In Apache mode, the module writes an .htaccess block in the /img folder that returns the AVIF or WebP version to the browser only if it supports it, thanks to the Accept header and a correct Vary: Accept for caches and CDNs. Your image URLs stay unchanged, your theme is not modified, and nothing breaks if you disable the module. For Nginx servers, a picture mode rewrites img tags into picture/source on the fly.
Non-destructive by design
For each image product.jpg, the module creates product.jpg.webp and product.jpg.avif next to the original. Your source files are never overwritten, which makes the operation fully reversible: one button restores the originals and removes the generated versions. If a next-gen version turns out to be heavier than the original, it is automatically discarded. You can also, optionally, recompress the original JPEG and PNG files, with a .dforig backup kept so you can roll back.
Lazy-loading and Core Web Vitals
The module adds the loading=lazy and decoding=async attributes to your images, relying on browsers' native lazy-loading: no heavy JavaScript, no negative impact on SEO. A subtle fade-in effect is available as an option. Combined with substantially lighter next-gen images, lazy-loading directly improves your Core Web Vitals metrics (LCP, CLS) and the store's perceived speed.
Built for large media libraries and agencies
Run a scan of the whole media library, then a batch conversion in AJAX with a progress bar, pause and resume. For very large catalogues, a token-secured CRON task and a CLI command let you process thousands of images in the background, without timeouts. A robust queue handles retries, skips animated images (GIF and APNG), respects a minimum size threshold and your pattern-based exclusions. The scope is fully configurable: products, categories, manufacturers, suppliers, stores, CMS pages and theme images.
There are no reviews yet.