$file->blur()
Blurs the image by the given amount of pixels
$file->blur(int|bool $pixels = true): FileVersion|File|Asset
Parameters
| Name | Type | Default |
|---|---|---|
| $pixels | intorbool |
true
|
Return types
Kirby\Cms\FileVersionorKirby\Cms\FileorKirby\Filesystem\Asset
Parent class
Blur Amount
You can modify the strength of the blur effect by passing an integer. The default value is 10.
echo $image->blur(30);
Examples
if ($image = $page->image()) {
echo $image->blur();
}