Codeigniter image resize not work properly -


i want resize uploaded image ratio of 400 x 350. use below code this.

$config = array(         'image_library' => 'gd2',         'source_image'      => $img_data['full_path'],         'new_image'         => $this->upload_path. '/thumbs',         'maintain_ration'   => false,         'width'             => 350,         'height'            => 400     );      $this->load->library('image_lib', $config);     $this->image_lib->resize(); 

codeigniter give me image ratio of 400 x 340.

see if help. here link class required accomplish task looking for

http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/


Comments

Popular posts from this blog

asp.net mvc 3 - Using mvc3, I need to add a username/password to the sql connection string at runtime -

kineticjs - draw multiple lines and delete individual line -

thumbnails - jQuery image rotate on hover -