WebP Images for Magento 2
WebP upload support plus automatic conversion of JPG, PNG and GIF images to cached WebP copies on the storefront.
Why choose WebP Images?
WebP Images adds WebP support to Magento without re-uploading your catalogue. Admins can upload WebP files directly, and existing JPG, PNG and GIF images are converted to cached WebP copies that are served to browsers that support them, with the original as a fallback. Quality and excluded paths are configurable.
Key features
- Direct WebP Upload
- Automatic Conversion of Existing Images
- Transparent Browser Fallback
- Site-Wide Coverage
- WYSIWYG and Media Gallery Aware
- Configurable Quality and Path Exclusions
- Works With Any Image Adapter
- Enable or Disable Without Losing Data
- Zero Core Code Changes
At a glance
| Module name | Mage2Expert_WebpImages |
|---|---|
| Composer package | mage2expert/module-webp-images |
| Settings | Stores › Configuration › Magento Expert › WebP Images (3 options) |
| Per store view settings | Yes |
| API | No custom endpoints (uses Magento's standard APIs) |
| PHP | 8.1, 8.2, 8.3, 8.4, 8.5 |
Installation
After purchasing on the Adobe Commerce Marketplace, install it with Composer using your Marketplace access keys:
composer require mage2expert/module-webp-images
bin/magento module:enable Mage2Expert_WebpImages
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
Skip setup:di:compile and static-content:deploy if your store runs in developer mode.
Configuration reference
All 3 options under Stores › Configuration › Magento Expert › WebP Images, grouped as they appear in the admin.
General Settings 3
| Setting | Description |
|---|---|
| Enable WebP Images | Allows .webp files to be uploaded for product images, category images, CMS/static block content, Page Builder content, store logo & favicon, and product CSV import. Also converts already-existing JPG/PNG/GIF images to a cached WebP copy the |
| WebP Quality | Compression quality used when converting existing images to WebP, 0-100 (default 80). Higher is better quality and larger file size. |
| Excluded Paths | One path fragment or wildcard pattern per line, relative to pub/media (e.g. "wysiwyg/no-webp/" or "*/placeholder/*"). Matching images are always left as their original format - never converted or rendered as WebP. |
Frequently asked questions
How much does WebP Images cost?
Which Magento and PHP versions are supported?
Where do I configure WebP Images?
Can I switch it off without uninstalling it?
Can the settings differ per store view?
Can it be customised for my store?
More Catalog & Storefront
Related extensions
Ajax Search Autocomplete
Instant search-as-you-type results with products, categories and pages shown in a fast dropdown.
360 Product View
Turn a series of ordinary product photos into an interactive 360° view, so shoppers can turn the product around before they buy.
Product Labels
Rule-based text or image badges such as “New” or “Sale” on product images, everywhere they appear in your store.
Have a Magento project in mind?
Tell me about your store and what you need. I reply to every enquiry within one business day.
Adobe Certified Expert
Adobe Commerce Developer certification, verified on Credly.
15+ years of Magento
From Magento 1 to Magento 2.4.x, Adobe Commerce and Hyvä.
62 Marketplace extensions
Each one reviewed and approved by Adobe.



