Filestack\Filelink::crop
Set this Filelink's transform_url to include crop task
Signature
public function crop(int
$x_coordinate,
int
$y_coordinate,
int
$width,
int
$height )
Parameters
$x_coordinate
—
int
- x coordinate to start cropping
$y_coordinate
—
int
- y coordinate to start cropping
$width
—
int
- width of crop area
$height
—
int
- height of corp area
Returns
- Filestack/Filelink
Errors/Exceptions
-
FilestackException
- if API call fails, e.g 404 file not found
Test Coverage
Information
- Coverage: / Lines (%)
- Tests: 0
- Passed: 0 (0%)