src/Image.php
public function save($destination = null)
    {
        if (empty($destination)) {
            $destination = $this->source;
        }

        $this->image->save($destination);

        // Clear the cached file size and refresh the image information.
        clearstatcache();

        chmod($destination, 0644);

        return new self($destination);
    }
public function save($destination = null)
    {
        if (empty($destination)) {
            $destination = $this->source;
        }

        $this->image->save($destination);

        // Clear the cached file size and refresh the image information.
        clearstatcache();

        chmod($destination, 0644);

        return new self($destination);
    }
public function save ( $ destination = null ) { if ( empty ( $ destination ) ) { $ destination = $ this -> source ; } $ this -> image -> save ( $ destination ) ; // Clear the cached file size and refresh the image information. clearstatcache ( ) ; chmod ( $ destination , 0644 ) ; return new self ( $ destination ) ; }
Close the image and save the changes to a file.

@param  string|null $destination Destination path where the image should be saved. If it is empty the original image file will be overwritten.
@throws \RuntimeException
@return Image  image or false, based on success.
Close the image and save the changes to a file .