title: resize image doesn't work in my codigniter project
body: <p>it does not show any error, and do nothing, I can not understand whats wrong with it! </p>
  
  <pre><code>    public function resize($path,$filename) {
  
              $config['source_image']    = $path;
              $config['create_thumb']    = TRUE;
              $config['maintain_ratio']  = TRUE;
              $config['width']           = 75;
              $config['height']          = 50;
              $config['new_image']       = './img/uploads/users/'.$filename . '.jpg';
              $this-&gt;load-&gt;library('image_lib');
              $this-&gt;image_lib-&gt;initialize($config);
              $this-&gt;image_lib-&gt;clear();
              if(!$this-&gt;image_lib-&gt;resize()) {
                  echo $this-&gt;image_lib-&gt;display_errors();
              }
  }
  </code></pre>