• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rotate large images not working

#1
[eluser]pinarella[/eluser]
i have a problem in codeigniter when rotating large images...bigger than 1.2mb. for smaller images, there is no problem. is there any solution?

here is the code:

Code:
public function rotate(){
    $path = $this->input->post('path');
    $file = $this->input->post('file');
    $config['image_library'] = 'gd2';
    $config['source_image'] = $path;
    $config['rotation_angle'] = '90';
    $config['new_image'] = './uploads/_rot'.$file;
    $this->load->library('image_lib');

    $this->image_lib->initialize($config);
    //$this->image_lib->rotate();
    if(!$this->image_lib->rotate()){
        echo $this->image_lib->display_errors();
    } else {
        echo 'OK';
    }
}



Messages In This Thread
rotate large images not working - by El Forum - 09-16-2012, 03:31 AM
rotate large images not working - by El Forum - 09-17-2012, 04:11 AM
rotate large images not working - by El Forum - 09-17-2012, 10:03 AM
rotate large images not working - by El Forum - 09-17-2012, 10:50 PM
rotate large images not working - by El Forum - 09-18-2012, 10:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.