JonoM\FocusPoint\FieldType\DBFocusPoint::applyCrop
Apply a cropData array to an Image_Backend instance
Signature
public function applyCrop(Image_Backend
$backend,
array
$cropData )
Parameters
$backend
—
SilverStripe\Assets\Image_Backend
- the image to crop. If not set, the current record will be used
$cropData
—
array
- Crop data to apply to this
Returns
- Image_Backend|null
- New image if resized, or null if no resize needed