Filestack\Filelink::watermark
Set this Filelink's transform_url to include the watermark task
Signature
public function watermark(string
$file_handle,
[string
$position = 'center',
[integer
$size = 100]] )
Parameters
$file_handle
—
string
- The Filestack handle of the image that
you want to layer on top of another
image as a watermark.
$position
—
string
- top, middle, bottom, left, center, or right
The position of the overlayed image. These
values can be paired as well like position:
[top,right].
$size
—
integer
- The size of the overlayed image as a percentage
of its original size. The value must be an
integer between 1 and 500.
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%)