Skip to content

Kirby 4.2.0

$image->is()

Checks if a file is of a certain type

$image->is(string $value): bool

Parameters

Name Type Default Description
$value * string An extension or mime type

Return type

bool

Parent class

Kirby\Image\Image inherited from Kirby\Filesystem\File