I am using gd2 library to cut images but it is not working for my images.
I am uploading images of 1000X1000px and then cut it in 300X300 and 107X84.
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.
(gd2 image)
(photoshop image)
You can see difference of both the images.
I am using the following 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->image_lib->initialize($config);
$this->image_lib->resize();
$this->image_lib->clear();