Skip to content

Kirby 3.9.1

$image->niceSize()

Returns the file size in a human-readable format

$image->niceSize(string|false|null $locale = null): string

Parameters

Name Type Default Description
$locale string|false|null null Locale for number formatting,
null for the current locale,
false to disable number formatting

Return type

string

Parent class

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