Skip to content

Kirby 4.4.1

$file->bw()

Converts the image to black and white

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

Return type

Kirby\Cms\FileVersion|Kirby\Cms\File|Kirby\Filesystem\Asset

Parent class

Kirby\Cms\File

Example

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