Skip to content

Kirby 4.2.0

Focus::coords()

Generates crop coordinates based on focal point

Focus::coords(string $crop, int $sourceWidth, int $sourceHeight, int $width, int $height): array|null

Parameters

Name Type Default
$crop * string
$sourceWidth * int
$sourceHeight * int
$width * int
$height * int

Return type

array|null

Parent class

Kirby\Image\Focus