public function save() : AbstractResize
    {
        if ($this->file === null) {
            $this->file = str_replace($this->extension, '-copy' . $this->extension, $this->source['file']);
        }
        if ($this->path === null) {
            $this->path = $this->source['path'];
        }

        $this->saveFile();

        return $this;
    }
public function save() : AbstractResize
    {
        if ($this->file === null) {
            $this->file = str_replace($this->extension, '-copy' . $this->extension, $this->source['file']);
        }
        if ($this->path === null) {
            $this->path = $this->source['path'];
        }

        $this->saveFile();

        return $this;
    }
public function save ( ) : AbstractResize { if ( $ this -> file === null ) { $ this -> file = str_replace ( $ this -> extension , '-copy' . $ this -> extension , $ this -> source [ 'file' ] ) ; } if ( $ this -> path === null ) { $ this -> path = $ this -> source [ 'path' ] ; } $ this -> saveFile ( ) ; return $ this ; }
Save the new image

@return AbstractResize
@throws \Exception Throws an exception if the save fails
Save the new image