ImageSizerEngine::setWebpAdd() method

Set flag to also create a webp file or not

Usage

// basic usage
$self = $imageSizerEngine->setWebpAdd(bool $webpAdd);

// usage with all arguments
$self = $imageSizerEngine->setWebpAdd(bool $webpAdd, $webpOnly = null);

Arguments

NameType(s)Description
webpAddbool
webpOnly (optional)bool, null

Return value

self


ImageSizerEngine methods and properties

API reference based on ProcessWire core version 3.0.244

“I am currently managing a ProcessWire site with 2 million+ pages. It’s admirably fast, and much, much faster than any other CMS we tested.” —Nickie, Web developer