$fileModifications->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.
$fileModifications->thumb(array|string|null $options = null): Kirby\Cms\FileVersion|Kirby\Cms\File|Kirby\Filesystem\Asset
Parameters
Name | Type | Default |
---|---|---|
$options | array orstring ornull |
null
|
Return types
Kirby\Cms\FileVersion
orKirby\Cms\File
orKirby\Filesystem\Asset
This method modifies the existing $filemodifications
object it is applied to and returns it again.
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
Parent class
Kirby\Cms\FileModifications