title: Image_lib path name error and server does not support the GD function
body: <p>I'm trying to to upload image then resize it
  then appear error </p>
  
  <p>"The path to the image is not correct.Your server does not support the GD function required to process this type of image."
  but in $config['source_image'] = './production/images/'.$id_akun.'jpg';
  is my path from 'upload_path'  => "./production/images/",
  so why my path is incorrect?
  this my function in controller   </p>
  
  <pre><code>                $id_akun=29;
                      $config = array(
                      'upload_path'  =&gt; "./production/images/",
                      'allowed_types' =&gt; "jpg",
                      'file_name' =&gt; $id_akun,
                      'overwrite' =&gt; true,
                      'max_size' =&gt; "2048",
                      'max_height' =&gt; "768",
                      'max_width' =&gt; "1024"
                      );
                      $this-&gt;upload-&gt;initialize($config);
  
                      if($this-&gt;upload-&gt;do_upload('userfile'))
                          {
                      $data = array(
                          'id' =&gt; $id_akun, 
                          'foto' =&gt; $this-&gt;upload-&gt;file_name
                          );
                          $this-&gt;User_model-&gt;upload($id_akun,$data);
                          $config['image_library'] = 'gd2';
                          $config['source_image'] = './production/images/'.$id_akun.'jpg';
                          $config['create_thumb'] = TRUE;
                          $config['maintain_ratio'] = TRUE;
                          $config['width']         = 220;
                          $config['height']       = 220;
                          $config['create_thumb'] = TRUE;
                          $this-&gt;image_lib-&gt;clear();
                          $this-&gt;image_lib-&gt;initialize($config);
                          $this-&gt;image_lib-&gt;resize();
  
                          $er=$this-&gt;image_lib-&gt;display_errors();
                          echo json_encode($er);
                          exit();  
                          }
  </code></pre>