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

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -