Skip to content

Kirby 3.7.5

$gdlib->preprocess()

Calculates the dimensions of the final thumb based on the given options and returns a full array with all the final options to be used for the image generator

$gdlib->preprocess(string $file, array $options = [ ]): array

Parameters

Name Type Default
$file * string
$options array [ ]

Return type

array

Parent class

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