Creates the transforms for an asset, and generates a <picture> or <img> element, or simply returns the transformed image url. Most of the work is in writing the configuration that describes the different image styles.
Will generate <picture> and <img> elements that work with lazysizes (
data-src) as well as normal ones (
The plugin provides two variables: craft.picture.element generates <picture> and <img> elements, which contain multiple urls for transfomations of a single image. craft.picture.url generates a single url, useful when the image is a
To install this plugin, search for its package name on the Plugin Store and click “Install”.