Skip to content

Kirby 5.0.4

$asset->bw()

Converts the image to black and white

$asset->bw(): Kirby\Cms\FileVersion|Kirby\Cms\File|Kirby\Filesystem\Asset

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