original_string: public function toString()
  	{
  		if ( $this->test() )
  		{
  			if ( class_exists('\\Imagick') )
  				$m = $this->img;
  			else
  			{
  				ob_start();
  				\call_user_func('image'.$this->ext2,$this->img);
  				$m = ob_get_contents();
  				ob_end_clean();
  			}
  			return 'data:image/'.$this->ext.';base64,'.base64_encode($m);
  		}
  	}
code: public function toString()
  	{
  		if ( $this->test() )
  		{
  			if ( class_exists('\\Imagick') )
  				$m = $this->img;
  			else
  			{
  				ob_start();
  				\call_user_func('image'.$this->ext2,$this->img);
  				$m = ob_get_contents();
  				ob_end_clean();
  			}
  			return 'data:image/'.$this->ext.';base64,'.base64_encode($m);
  		}
  	}
code_tokens: public function toString ( ) { if ( $ this -> test ( ) ) { if ( class_exists ( '\\Imagick' ) ) $ m = $ this -> img ; else { ob_start ( ) ; \ call_user_func ( 'image' . $ this -> ext2 , $ this -> img ) ; $ m = ob_get_contents ( ) ; ob_end_clean ( ) ; } return 'data:image/' . $ this -> ext . ';base64,' . base64_encode ( $ m ) ; } }
docstring: Return the image as string.
  
  ```php
  $img = new bbn\file\image("/home/data/test/image.jpg");
  bbn\x::hdump($img->toString());
  // (string)
  ```
  
  @return string
docstring_tokens: Return the image as string .