Skip to content

Kirby 4.3.0

new Image()

Constructor sets all file properties

new Image(array|string|null $props = null, ?string $url = null)


Name Type Default Description
$props array|string|null null Properties or deprecated $root string
$url string|null null Deprecated argument, use $props['url'] instead


Type Description
Kirby\Exception\InvalidArgumentException When the model does not use the Kirby\Filesystem\IsFile trait

Parent class

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