$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|string|null $options = null): FileVersion|File|Asset
Parameters
| Name | Type | Default |
|---|---|---|
| $options | arrayorstringornull |
null
|
Return types
Kirby\Cms\FileVersionorKirby\Cms\FileorKirby\Filesystem\Asset
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |