trait PixelEffectTrait

Trait PixelEffectTrait

Methods

blur(int $strength = null)

Applies a blurring filter to the asset.

blurFaces(int $strength = null)

Applies a blurring filter to the faces detected on the asset.

blurRegion(int|string $strength = null, int|string $x = null, int|string $y = null, int|string $width = null, int|string $height = null)

Applies a blurring filter to the region on the asset.

vignette(int $strength = null)

Applies a vignette effect.

Details

static Blur blur(int $strength = null)

Applies a blurring filter to the asset.

Parameters

Name Type Description
$strength int The strength of the blur. (Range: 1 to 2000, Server default: 100)

Return Value

Blur

static Blur blurFaces(int $strength = null)

Applies a blurring filter to the faces detected on the asset.

Parameters

Name Type Description
$strength int The strength of the blur. (Range: 1 to 2000, Server default: 100)

Return Value

Blur

static Blur blurRegion(int|string $strength = null, int|string $x = null, int|string $y = null, int|string $width = null, int|string $height = null)

Applies a blurring filter to the region on the asset.

Parameters

Name Type Description
$strength int|string The strength of the blur. (Range: 1 to 2000, Server default: 100)
$x int|string X.
$y int|string Y.
$width int|string Width.
$height int|string Height.

Return Value

Blur

static StrengthEffectAction vignette(int $strength = null)

Applies a vignette effect.

Parameters

Name Type Description
$strength int The strength of the vignette. (Range: 0 to 100, Server default: 20)

Return Value

StrengthEffectAction