Skip to content

Kirby 5.2.0

GdLib::factory()

Creates a new Darkroom instance for the given type/driver

GdLib::factory(string $type, array $settings = [ ]): Kirby\Image\Darkroom\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