Skip to content

Kirby 5.0.4

$asset->blur()

Blurs the image by the given amount of pixels

$asset->blur(int|bool $pixels = true): Kirby\Cms\FileVersion|Kirby\Cms\File|Kirby\Filesystem\Asset

Parameters

Name Type Default
$pixels intorbool true

Return types

Kirby\Cms\FileVersionorKirby\Cms\FileorKirby\Filesystem\Asset

This method modifies the existing $asset object it is applied to and returns it again.

Parent class

Kirby\Filesystem\Asset