public function saveThumb($path = '', $filename = '')
    {

        if (empty($this->filename)) return false;
        try {
            $save_name = (empty($path) ? $this->path : $path);
            $save_name = "$save_name/" . (empty($filename) ? 'th_' . $this->filename : $filename);
            $this->imagemagik->writeImage($save_name);
        } catch (\ImagickException $e) {
            throw $e;
        }

        return $this->open($save_name);
    }
public function saveThumb($path = '', $filename = '')
    {

        if (empty($this->filename)) return false;
        try {
            $save_name = (empty($path) ? $this->path : $path);
            $save_name = "$save_name/" . (empty($filename) ? 'th_' . $this->filename : $filename);
            $this->imagemagik->writeImage($save_name);
        } catch (\ImagickException $e) {
            throw $e;
        }

        return $this->open($save_name);
    }
public function saveThumb ( $ path = '' , $ filename = '' ) { if ( empty ( $ this -> filename ) ) return false ; try { $ save_name = ( empty ( $ path ) ? $ this -> path : $ path ) ; $ save_name = "$save_name/" . ( empty ( $ filename ) ? 'th_' . $ this -> filename : $ filename ) ; $ this -> imagemagik -> writeImage ( $ save_name ) ; } catch ( \ ImagickException $ e ) { throw $ e ; } return $ this -> open ( $ save_name ) ; }
saves the file and opens the fileinfo for this file

@param string $path
@param string $filename

@throws \Exception
@throws \ImagickException
@return boolean
saves the file and opens the fileinfo for this file