jbennecker\Webp\WebpExtension::WebpPicture
WebpPicture
In Example.ss: Image.WebpPicture('class="image bg-image" width="550" height="370"', 170, 550, 950, 1200).RAW Note: Must me used in template with the .RAW method to prevent the HTML from being escaped.
Signature
public function WebpPicture(string
$params,
int
$widths )
Parameters
$params
— string- HTML Parameters for the img tag, except alt="". Do not use $ViewVariables in the Template as they won't be evaluated.
$widths
— int
Returns
- string