Barryvdh\Snappy\ImageWrapper::save PHP Method

save() public method

Save the image to a file
public save ( $filename, $overwrite = false ) : static
$filename
return static
    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;
    }