public function create($filename = null, array $options = [], array $plugins = [])
    {
        try {
            $thumb = new PHPThumb($filename, $options, $plugins);
        } catch (\Exception $exc) {
            throw new Exception\RuntimeException($exc->getMessage(), $exc->getCode(), $exc);
        }

        return $thumb;
    }
public function create($filename = null, array $options = [], array $plugins = [])
    {
        try {
            $thumb = new PHPThumb($filename, $options, $plugins);
        } catch (\Exception $exc) {
            throw new Exception\RuntimeException($exc->getMessage(), $exc->getCode(), $exc);
        }

        return $thumb;
    }
public function create ( $ filename = null , array $ options = [ ] , array $ plugins = [ ] ) { try { $ thumb = new PHPThumb ( $ filename , $ options , $ plugins ) ; } catch ( \ Exception $ exc ) { throw new Exception \ RuntimeException ( $ exc -> getMessage ( ) , $ exc -> getCode ( ) , $ exc ) ; } return $ thumb ; }
Create image thumbnail object

@param string $filename
@param array $options
@param array $plugins
@return PHPThumb
Create image thumbnail object