[eluser]Unknown[/eluser]
I'm letting people upload images and want the images to be a certain height/width if they go over a certain size. The problem is once resized, the image looks bad. It looses most of the color and just has a black/white, brown tone to it. Here's the code:
$this->upload->do_upload($image);
$info=$this->upload->data();
$config['image_library'] = 'GD';
$config['source_image'] = $info['full_path'];
$config['create_thumb'] = FALSE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 150;
$config['height'] = 214;
$config['quality']="100%";
$this->load->library('image_lib', $config);
$this->image_lib->resize();
Am I missing something?
Thanks!