title: Resize image without distortion of image in codeigniter
body: <p>I want to resize image without image being distorted.For example  if i have set the image height to be 100 and width as 200.The image resized must be of 100 height and 200 width.In order to achieve that i want to crop that image instead of getting it distorted.</p>
  
  <p>My config options:-</p>
  
  <pre><code>            $config['create_thumb'] = TRUE;
              $config['maintain_ratio'] = FALSE;
              $config['master_dim'] = 'auto';
              $config['width'] = 100;
              $config['height']= 100;
  
              $this-&gt;image_lib-&gt;initialize($config);
              $this-&gt;image_lib-&gt;resize();
  </code></pre>
  
  <p>Also is it possible without using any other library of image manipulation?</p>