filestack/Filelink.php
public function tornEdges($background = 'white', $spread = [1,10])
    {
        $options = [
            'b' => $background,
            's' => $spread
        ];

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

        return $this;
    }
public function tornEdges($background = 'white', $spread = [1,10])
    {
        $options = [
            'b' => $background,
            's' => $spread
        ];

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

        return $this;
    }
public function tornEdges ( $ background = 'white' , $ spread = [ 1 , 10 ] ) { $ options = [ 'b' => $ background , 's' => $ spread ] ; // call TransformationMixin function $ this -> setTransformUrl ( 'torn_edges' , $ options ) ; return $ this ; }
Set this Filelink's transform_url to include the torn_edges task

@param string    $background     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')
@param array     $spread         Sets the spread of the tearing effect. The
value must be an array of two integers in
a range from 1 to 10000.

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

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