Skip to content

Kirby 5.1.3

$image->is()

Checks if a file is of a certain type

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

Parameters

Name Type Default Description
$valuerequired string no default value An extension or mime type

Return type

bool

This method modifies the existing $image object it is applied to and returns it again.

Parent class

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