I am using CodeIgniter to resize image, but the small image I have resized is low quality. Here is my code:
$config = array(
'image_library' => 'gd2',
'quality' => '100',
'source_image' => $temp_full_path,
'new_image' => $full_temp_path."img_mobile/",
'maintain_ratio' => true,
'create_thumb' => false,
'width' => 50,
'height' => 50
);
$this->image_lib->initialize($config);
$this->image_lib->resize();
How can make resize image with high quality like it's original image?
Here is original image, image resize generate from php code and image resize generate from codeigniter: Image

It's a small mistake or a pitfall.
Do:
instead of
Should work, according to docs.
EDIT:
There seems to be another typo!
should be
Also, how can
new_imageend with a/? you are doing something wrong there.