Skip to content

Kirby 5.0.4

Mime::fromSvg()

Tries to detect a valid SVG and returns the MIME type accordingly

Mime::fromSvg(string $file): string|false

Parameters

Name Type Default
$filerequired string no default value

Return types

stringorfalse

Parent class

Kirby\Filesystem\Mime