jbennecker\Webp\WebpExtension::WebpSet
WebpSet
For use in <img> tag: <img src="$BackgroundImage.ScaleWidth(1200).Link" srcset="$BackgroundImage.WebpSet(550, 750, 1200, 1500, 2200, 2700)" alt="$BackgroundImage.Title" class="background-image" > Returns an imploded array of the image's webp-Version in the respective size with [size]w hints for the browser, e.g. '/path/to/image.jpg-550px.webp 550w, /path/to/image.jpg-800px.webp 800w, '
Signature
public function WebpSet(
$widths )
Parameters
$widths
—
Returns
- string|null