filestack/Filelink.php
public function watermark($file_handle, $position = 'center', $size = 100)
    {
        $options = [
            'f' => $file_handle,
            'p' => $position,
            's' => $size
        ];

        // call TransformationMixin function
        $this->setTransformUrl('watermark', $options);

        return $this;
    }
public function watermark($file_handle, $position = 'center', $size = 100)
    {
        $options = [
            'f' => $file_handle,
            'p' => $position,
            's' => $size
        ];

        // call TransformationMixin function
        $this->setTransformUrl('watermark', $options);

        return $this;
    }
public function watermark ( $ file_handle , $ position = 'center' , $ size = 100 ) { $ options = [ 'f' => $ file_handle , 'p' => $ position , 's' => $ size ] ; // call TransformationMixin function $ this -> setTransformUrl ( 'watermark' , $ options ) ; return $ this ; }
Set this Filelink's transform_url to include the watermark task

@param string    $file_handle    The Filestack handle of the image that
you want to layer on top of another
image as a watermark.
@param string    $position       top, middle, bottom, left, center, or right
The position of the overlayed image. These
values can be paired as well like position:
[top,right].
@param int       $size           The size of the overlayed image as a percentage
of its original size. The value must be an
integer between 1 and 500.

@throws FilestackException   if API call fails, e.g 404 file not found

@return Filestack/Filelink
Set this Filelink s transform_url to include the watermark task