Magento 2 extension

WebP & AVIF Image Optimizer

Serve smaller images without changing your originals. The extension creates WebP, and where the server supports it AVIF, versions of catalog and CMS images and delivers them to browsers that can show them.

$25 one-time licence

What it does

Serve smaller images without changing your originals. The extension creates WebP, and where the server supports it AVIF, versions of catalog and CMS images and delivers them to browsers that can show them.

This extension makes storefront pages lighter by serving WebP, and where the server supports it AVIF, versions of catalog and CMS images, while your original files stay unchanged. Converted copies are created next to the originals when images are first shown, by a background queue and a scheduled job, or from the command line, and kept only when they are smaller. Product lists and CMS content then use a picture element so each browser loads the format it supports, and the product page gallery uses WebP where the browser can show it. It can also add lazy loading, async decoding and missing width and height to images. Under Stores > Configuration you choose formats, quality, minimum saving, where it applies and CSS classes to exclude. A report under Reports shows server support, converted files and bytes saved. It suits catalogs with many large product photos.

Features

  • WebP and AVIF versions stored next to the original files; originals are never changed
  • Works with GD or Imagick, and detects what the server supports
  • Picture element with fallback in product lists and CMS content
  • WebP in the product page gallery for browsers that support it
  • Lazy loading, and width and height attributes to reduce layout shift
  • Images are converted on demand through a queue, by cron for the backlog, or from the command line
  • Savings report in the admin: files converted and bytes saved
  • An image is kept in its original format when the converted file would not be smaller

Where you find it in the admin

  • Reports > Modvanta > Image Optimizer

Screenshots

WebP & AVIF Image Optimizer screenshot 2

Installation

After purchase you get the package and the PDF user guide. Install it with Composer, or ask us to install it for you:

composer require modvanta/module-image-optimizer
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

WebP & AVIF Image Optimizer: questions

Which Magento versions does WebP & AVIF Image Optimizer support?

Magento Open Source and Adobe Commerce 2.4 (developed and tested on 2.4.9), with PHP 8.1 to 8.5 and Luma-based themes. If your store runs Hyva or a headless front end, tell us first and we check it before you buy.

How much does WebP & AVIF Image Optimizer cost?

$25 as a one-time payment for one Magento installation. You get the full source code and a PDF user guide. There is no yearly fee.

How do I install WebP & AVIF Image Optimizer?

With Composer: composer require modvanta/module-image-optimizer, then bin/magento setup:upgrade. It pulls in the free Modvanta Core package automatically. We can also install and configure it on your store.