Skip to content

Kirby 3.5.7.1

$file->blur()

Blurs the image by the given amount of pixels

$file->blur(bool $pixels = true): Kirby\Cms\FileVersion|Kirby\Cms\File

Parameters

Name Type Default
$pixels bool true

Return type

Kirby\Cms\FileVersion|Kirby\Cms\File

Parent class

Kirby\Cms\File

Example

if($image = $page->image()):
    echo $image->blur();
endif;

Blur Amount

You can modify the strength of the blur effect by passing an integer. The default value is 10.

echo $image->blur(30);