public function encode($format = null, $quality = 90)
    {
        return $this->driver->encode($this, $format, $quality);
    }
public function encode($format = null, $quality = 90)
    {
        return $this->driver->encode($this, $format, $quality);
    }
public function encode ( $ format = null , $ quality = 90 ) { return $ this -> driver -> encode ( $ this , $ format , $ quality ) ; }
Starts encoding of current image

@param  string  $format
@param  int     $quality
@return \Intervention\Image\Image
Starts encoding of current image