original_string: function load_base64($base64string) {
          if (!extension_loaded('gd')) {
              throw new Exception('Required extension GD is not loaded.');
          }
          //remove data URI scheme and spaces from base64 string then decode it
          $this->imagestring = base64_decode(str_replace(' ', '+', preg_replace('#^data:image/[^;]+;base64,#', '', $base64string)));
          $this->image = imagecreatefromstring($this->imagestring);
          return $this->get_meta_data();
      }
code: function load_base64($base64string) {
          if (!extension_loaded('gd')) {
              throw new Exception('Required extension GD is not loaded.');
          }
          //remove data URI scheme and spaces from base64 string then decode it
          $this->imagestring = base64_decode(str_replace(' ', '+', preg_replace('#^data:image/[^;]+;base64,#', '', $base64string)));
          $this->image = imagecreatefromstring($this->imagestring);
          return $this->get_meta_data();
      }
code_tokens: function load_base64 ( $ base64string ) { if ( ! extension_loaded ( 'gd' ) ) { throw new Exception ( 'Required extension GD is not loaded.' ) ; } //remove data URI scheme and spaces from base64 string then decode it $ this -> imagestring = base64_decode ( str_replace ( ' ' , '+' , preg_replace ( '#^data:image/[^;]+;base64,#' , '' , $ base64string ) ) ) ; $ this -> image = imagecreatefromstring ( $ this -> imagestring ) ; return $ this -> get_meta_data ( ) ; }
docstring: Load a base64 string as image
  
  @param string        $base64string   base64 string
  
  @return SimpleImage
docstring_tokens: Load a base64 string as image