Skip to content

Kirby 6.0.1

GdLib::factory()

Creates a new Darkroom instance for the given type/driver

GdLib::factory(string $type, array $settings = []): GdLib

Parameters

Name Type Default
$typerequired string no default value
$settings array []

Return type

Kirby\Image\Darkroom\GdLib

Exceptions

Type Description
Exception

Parent class

Kirby\Image\Darkroom\GdLib inherited from Kirby\Image\Darkroom