Hi everyone.
I have just made a module which creates responsive images. Its actually in its 3rd iteration, but v1 for this repository.
It supports the following:
- minimal config
- minimal inline code (unless you want to override configurations)
- outputs original format image plus webp (can be configured)
- choose from pixel density (1x,2x) or variable with (e.g. 400px, 800px, 1200px) output
- choose aspect ratio of output image (so multiple images line up properly)
- integrates with lazysizes, so you don’t have to set the sizes property (this can be turned off)
- also generates figures
- has a shortcode for images/figures
- has a render hook which can be turned on/off via config or the pages front matter
More features to come soon including
- lquip blur up placeholder
- external image support
- noscript support (required js and css so i’ve left it out for now to keep it simple)
PR’s and feedback welcome