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.
My config options:-
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = FALSE;
$config['master_dim'] = 'auto';
$config['width'] = 100;
$config['height']= 100;
$this->image_lib->initialize($config);
$this->image_lib->resize();
Also is it possible without using any other library of image manipulation?
I have solved my problem. I had to re-sized my image and then crop it. Its a bit of long process anyways if you have a better than this please suggest.
My code: