
Why should you install this module?
Provides a field formatter that outputs responsive images utilising the srcset
image attribute.
srcset
lets you specify different image variants which the browser chooses between based on the screen size. For example, you can specify a large, medium and small variant of a particular image; then, depending on the user's screen size, the browser will automatically load the appropriately-sized image. No more displaying 1000+ pixel images on mobile devices!
You can read more about the srcset
and sizes
image attributes here: https://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-srcset/
This module integrates with Backdrop's image styles to automatically create the image variants you select. Simply upload a full-size image, and the different variants are created automatically. You can also edit the value of the sizes
attribute for more fine-grained control.
Features
- Define multiple sets of image to meet different needs around your website
- Specify whether to include the original image in the set or not
- Set "lazy loading" settings for the image.
- Optionally define sizes to work with the
srcset
Key contributions
- Updated module to work with updated version of a module it depends on.
- Added lazy loading option
- Fixed bugs