trait ImageQualifierTrait

Trait ImageQualifierTrait

Methods

defaultImage(string $defaultImage)

Default images can be used in the case that a requested image does not exist.

delay(int $delay)

Controls the time delay between the frames of an animated image, in milliseconds.

density(int|string $density)

Controls the density to use when delivering an image or when converting a vector file such as a PDF or EPS document to a web image delivery format.

prefix(string $prefix)

Prevents style class names collisions for sprite generation.

Details

static DefaultImage defaultImage(string $defaultImage)

Default images can be used in the case that a requested image does not exist.

Parameters

Name Type Description
$defaultImage string Default image public ID

Return Value

DefaultImage

static Delay delay(int $delay)

Controls the time delay between the frames of an animated image, in milliseconds.

Parameters

Name Type Description
$delay int The delay in milliseconds

Return Value

Delay

static Density density(int|string $density)

Controls the density to use when delivering an image or when converting a vector file such as a PDF or EPS document to a web image delivery format.

Parameters

Name Type Description
$density int|string The density in dpi.

Return Value

Density

static Prefix prefix(string $prefix)

Prevents style class names collisions for sprite generation.

Parameters

Name Type Description
$prefix string The style class name prefix.

Return Value

Prefix