Skip to content

Kirby 4.3.0

Media::thumb()

Tries to find a job file for the given filename and then calls the thumb component to create a thumbnail accordingly

Media::thumb(Kirby\Cms\File|Kirby\Cms\Page|Kirby\Cms\Site|Kirby\Cms\User|string $model, string $hash, string $filename): Kirby\Cms\Response|false

Parameters

Name Type Default
$model * Kirby\Cms\File|Kirby\Cms\Page|Kirby\Cms\Site|Kirby\Cms\User|string
$hash * string
$filename * string

Return type

Kirby\Cms\Response|false

Parent class

Kirby\Cms\Media