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