Welcome Guest, Not a member yet? Register   Sign In
Image Crop not working.
#9

[eluser]sb05[/eluser]
Cool, it worked!

Code:
$this->load->library('upload', $config);

                           if (!$this->upload->do_upload()){
                            $error = $this->upload->display_errors();
                            echo $error;
                        }else{
                            $upload_data=$this->upload->data();
                            $file_name=$upload_data['file_name'];
                            $full_file_path = $path_to_uploads.'/'.$file_name;
                        }

                 $this->load->library("image_moo");
                  $this->image_moo->load($full_file_path)
                ->resize_crop(100,100)
                ->save($full_file_path, $overwrite=TRUE);
          
                          if($this->image_moo->errors)
                          print $this->image_moo->display_errors();

Thanks again Smile


Messages In This Thread
Image Crop not working. - by El Forum - 01-20-2011, 04:53 AM
Image Crop not working. - by El Forum - 01-20-2011, 06:05 AM
Image Crop not working. - by El Forum - 01-20-2011, 07:13 AM
Image Crop not working. - by El Forum - 01-20-2011, 08:09 AM
Image Crop not working. - by El Forum - 01-20-2011, 01:11 PM
Image Crop not working. - by El Forum - 01-20-2011, 02:42 PM
Image Crop not working. - by El Forum - 01-20-2011, 02:56 PM
Image Crop not working. - by El Forum - 01-20-2011, 05:00 PM
Image Crop not working. - by El Forum - 01-21-2011, 07:54 AM
Image Crop not working. - by El Forum - 01-21-2011, 12:36 PM
Image Crop not working. - by El Forum - 01-22-2011, 06:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB