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 |
|---|---|---|
| $croprequired | string |
no default value |
| $sourceWidthrequired | int |
no default value |
| $sourceHeightrequired | int |
no default value |
| $widthrequired | int |
no default value |
| $heightrequired | int |
no default value |
Return types
arrayornull