src/ImboClient/Http/ImageUrl.php
public function vignette($scale = null, $outerColor = null, $innerColor = null) {
        $params = array();

        if ($scale) {
            $params[] = 'scale=' . $scale;
        }

        if ($outerColor) {
            $params[] = 'outer=' . $outerColor;
        }

        if ($innerColor) {
            $params[] = 'inner=' . $innerColor;
        }

        return $this->addTransformation(
            'vignette' . ($params ? ':' . implode(',', $params) : '')
        );
    }
public function vignette($scale = null, $outerColor = null, $innerColor = null) {
        $params = array();

        if ($scale) {
            $params[] = 'scale=' . $scale;
        }

        if ($outerColor) {
            $params[] = 'outer=' . $outerColor;
        }

        if ($innerColor) {
            $params[] = 'inner=' . $innerColor;
        }

        return $this->addTransformation(
            'vignette' . ($params ? ':' . implode(',', $params) : '')
        );
    }
public function vignette ( $ scale = null , $ outerColor = null , $ innerColor = null ) { $ params = array ( ) ; if ( $ scale ) { $ params [ ] = 'scale=' . $ scale ; } if ( $ outerColor ) { $ params [ ] = 'outer=' . $ outerColor ; } if ( $ innerColor ) { $ params [ ] = 'inner=' . $ innerColor ; } return $ this -> addTransformation ( 'vignette' . ( $ params ? ':' . implode ( ',' , $ params ) : '' ) ) ; }
Add a vignette transformation

@param float $scale Scale factor of vignette. 2 means twice the size of the original image
@param string $outerColor Color at the edge of the image
@param string $innerColor Color at the center of the image
@return self
Add a vignette transformation