Filestack\Filelink::border
Set this Filelink's transform_url to include border task
Signature
public function border([string
$background = 'white',
[string
$color = 'black',
[integer
$width = 2]]] )
Parameters
$background
—
string
- Sets the background color to display behind
the image. This can be the word for a color,
or the hex color code, e.g. ('red' or 'FF0000')
$color
—
string
- Sets the color of the border to render around
the image. This can be the word for a color,
or the hex color code, e.g. ('red' or 'FF0000')
$width
—
integer
- Sets the width in pixels of the border to render
around the image. The value for this parameter
must be in a range from 1 to 1000.
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%)