public function save($filename, $overwrite = false)
    {

        if ($this->html)
        {
            $this->snappy->generateFromHtml($this->html, $filename, $this->options, $overwrite);
        }
        elseif ($this->file)
        {
            $this->snappy->generate($this->file, $filename, $this->options, $overwrite);
        }

        return $this;
    }
public function save($filename, $overwrite = false)
    {

        if ($this->html)
        {
            $this->snappy->generateFromHtml($this->html, $filename, $this->options, $overwrite);
        }
        elseif ($this->file)
        {
            $this->snappy->generate($this->file, $filename, $this->options, $overwrite);
        }

        return $this;
    }
public function save ( $ filename , $ overwrite = false ) { if ( $ this -> html ) { $ this -> snappy -> generateFromHtml ( $ this -> html , $ filename , $ this -> options , $ overwrite ) ; } elseif ( $ this -> file ) { $ this -> snappy -> generate ( $ this -> file , $ filename , $ this -> options , $ overwrite ) ; } return $ this ; }
Save the image to a file

@param $filename
@return static
Save the image to a file