filestack/Filelink.php
public function vignette($amount = 20, $background = 'white', $blurmode = 'gaussian')
    {
        $options = [
            'a' => $amount,
            'b' => $background,
            'm' => $blurmode
        ];

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

        return $this;
    }
public function vignette($amount = 20, $background = 'white', $blurmode = 'gaussian')
    {
        $options = [
            'a' => $amount,
            'b' => $background,
            'm' => $blurmode
        ];

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

        return $this;
    }
public function vignette ( $ amount = 20 , $ background = 'white' , $ blurmode = 'gaussian' ) { $ options = [ 'a' => $ amount , 'b' => $ background , 'm' => $ blurmode ] ; // call TransformationMixin function $ this -> setTransformUrl ( 'vignette' , $ options ) ; return $ this ; }
Set this Filelink's transform_url to include the vignette task

@param int       $amount         The opacity of the vignette effect (0-100)
@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 string    $blurmode       linear or gaussian
Controls the type of blur applied to the
vignette - linear or gaussian. The vignette
effect uses gaussian blur by default because
it produces a more defined vignette around
the image. Specifying linear is faster,
but produces a less-defined blur effect,
even at higher amounts.

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

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