Reference

Guide

$asset->thumb()

Creates a modified version of images The media manager takes care of generating those modified versions and putting them in the right place. This is normally the /media folder of your installation, but could potentially also be a CDN or any other place.

$asset->thumb(array|null|string $options = null): Kirby\Cms\FileVersion|Kirby\Cms\File

Parameters

Name Type Default Description
$options array|null|string null

Return type

Kirby\Cms\FileVersion|Kirby\Cms\File

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException

Source code

kirby/src/Cms/FileModifications.php#L181