original_string: public function getImageSize($path, $mime = '') {
  		$size = false;
  		if ($mime === '' || strtolower(substr($mime, 0, 5)) === 'image') {
  			if ($work = $this->getWorkFile($path)) {
  				if ($size = @getimagesize($work)) {
  					$size['dimensions'] = $size[0].'x'.$size[1];
  				}
  			}
  			is_file($work) && @unlink($work);
  		}
  		return $size;
  	}
code: public function getImageSize($path, $mime = '') {
  		$size = false;
  		if ($mime === '' || strtolower(substr($mime, 0, 5)) === 'image') {
  			if ($work = $this->getWorkFile($path)) {
  				if ($size = @getimagesize($work)) {
  					$size['dimensions'] = $size[0].'x'.$size[1];
  				}
  			}
  			is_file($work) && @unlink($work);
  		}
  		return $size;
  	}
code_tokens: public function getImageSize ( $ path , $ mime = '' ) { $ size = false ; if ( $ mime === '' || strtolower ( substr ( $ mime , 0 , 5 ) ) === 'image' ) { if ( $ work = $ this -> getWorkFile ( $ path ) ) { if ( $ size = @ getimagesize ( $ work ) ) { $ size [ 'dimensions' ] = $ size [ 0 ] . 'x' . $ size [ 1 ] ; } } is_file ( $ work ) && @ unlink ( $ work ) ; } return $ size ; }
docstring: Get image size array with `dimensions`
  
  @param string $path path need convert encoding to server encoding
  @param string $mime file mime type
  @return array|false
docstring_tokens: Get image size array with dimensions