public function create(String $path = NULL) : String
    {
        if( isset($this->sets['filePath']) )
        {
            $path = $this->sets['filePath'];
        }

        # It keeps the used filters belonging to the GD class.
        # [5.7.8]added
        $this->sets['filters'] = $this->filters;

        $settings = $this->sets;
        
        $this->sets = [];

        return $this->image->thumb($path, $settings);
    }
public function create(String $path = NULL) : String
    {
        if( isset($this->sets['filePath']) )
        {
            $path = $this->sets['filePath'];
        }

        # It keeps the used filters belonging to the GD class.
        # [5.7.8]added
        $this->sets['filters'] = $this->filters;

        $settings = $this->sets;
        
        $this->sets = [];

        return $this->image->thumb($path, $settings);
    }
public function create ( String $ path = NULL ) : String { if ( isset ( $ this -> sets [ 'filePath' ] ) ) { $ path = $ this -> sets [ 'filePath' ] ; } # It keeps the used filters belonging to the GD class. # [5.7.8]added $ this -> sets [ 'filters' ] = $ this -> filters ; $ settings = $ this -> sets ; $ this -> sets = [ ] ; return $ this -> image -> thumb ( $ path , $ settings ) ; }
Create new image

@param string $path = NULL

@return string
Create new image