Image Extender
The Image Extender module for Adobe Commerce (Magento) Page Builder extends the standard Page Builder Image element with the SEO and performance controls it’s missing out of the box. On the existing desktop image, it adds width, height, and eager/lazy loading options.
It also introduces a brand new mobile image section, with its own image upload, width, height, alt tag, and eager/lazy loading control, so desktop and mobile can be optimised independently rather than sharing a single image.
Module views
Here is a selection of images showing the module admin & frontend views.
Want to preview the code before using: take a look here.
Tested with: Mage-0s 3.4.0, Magento 2 2.4.9
Key features:
-
Desktop Image Dimensions:
Add explicit width and height to the existing desktop image field, improving layout stability and Core Web Vitals scores. -
Desktop Loading Control:
Choose eager or lazy loading per desktop image, so above-the-fold images render immediately and below-the-fold images defer. -
Dedicated Mobile Image:
A new, separate mobile image field; upload a mobile-specific image rather than relying on the desktop image being scaled down. -
Mobile Image Dimensions:
Set width and height on the mobile image independently of the desktop settings. -
Mobile Alt Tag:
A dedicated alt tag field for the mobile image, keeping accessibility and SEO correct across breakpoints. -
Mobile Loading Control:
Choose eager or lazy loading on the mobile image independently of the desktop setting. -
Native Page Builder Integration:
Extends the standard Image element directly in Page Builder, with no separate module or workflow to learn.
Benefits:
-
Improved Core Web Vitals:
Explicit width and height on both desktop and mobile images prevent layout shift (CLS), while eager loading on key images improves Largest Contentful Paint (LCP). -
Reduced Page Weight:
Lazy loading on non-critical images cuts initial load time, which search engines factor into ranking and user experience signals. -
Correct Accessibility Tagging:
A dedicated mobile alt tag ensures screen readers and search crawlers get accurate image context on every device, not just desktop. -
Device-Appropriate Assets:
Serving a genuinely separate, right-sized mobile image reduces unnecessary data transfer, a factor in mobile page speed scoring.
Configuration:
-
Navigate to the Page Builder interface in your admin panel and add or edit an Image element.
-
On the desktop image, set the width and height and choose eager or lazy loading.
-
In the new mobile image section, upload the mobile image, set its width, height, and alt tag, and choose eager or lazy loading.
-
Save: the image element now serves the correct asset, dimensions, and loading behaviour per device.
Use Cases:
-
Responsive Art Direction:
Serve a cropped or differently composed image on mobile rather than a shrunk desktop version. -
Above-the-Fold Hero Images:
Set eager loading and explicit dimensions on key banner or hero images to improve LCP. -
Below-the-Fold Content Images:
Set lazy loading on images further down the page to reduce initial page weight. -
Bandwidth-Conscious Mobile Delivery:
Serve a smaller, purpose-sized image to mobile visitors instead of the full desktop asset.
Conclusion:
The Image Extender module for Adobe Commerce closes a real gap in the standard Page Builder Image element, giving both desktop and mobile images the dimension, alt tag, and loading controls needed for strong SEO and performance. With independent mobile image handling and per-device loading control, it’s a small addition that has a direct impact on Core Web Vitals and page speed.
Need help with Adobe Commerce projects:
a module extended, a Page Builder build, a re-platform? get in touch were here to help.
Get in touch.