title: gd2 library is not giving good results
body: <p>I am using gd2 library to cut images but it is not working for my images.</p>
  
  <p>I am uploading images of 1000X1000px and then cut it in 300X300 and 107X84.</p>
  
  <p>300X300 image is fine but 107X84 image isn't great. I can easily see the difference with same image cut using photoshop of same size.</p>
  
  <p><img src="https://i.stack.imgur.com/jAbk9.jpg" alt="enter image description here">  <strong>(gd2 image)</strong></p>
  
  <p><img src="https://i.stack.imgur.com/YQuQ0.jpg" alt="enter image description here"> <strong>(photoshop image)</strong></p>
  
  <p>You can see difference of both the images.</p>
  
  <p>I am using the following code</p>
  
  <pre><code>//small image
  $config['image_library'] = 'gd2';
  $config['source_image'] = 'uploads/images/medium/'.$upload_data['file_name'];
  $config['new_image']    = 'uploads/images/small/'.$upload_data['file_name'];
  $config['maintain_ratio'] = FALSE;
  $config['width'] = 107;/*235*/
  $config['height'] = 84;/*235*/
  $this-&gt;image_lib-&gt;initialize($config); 
  $this-&gt;image_lib-&gt;resize();
  $this-&gt;image_lib-&gt;clear();
  </code></pre>