CodeIgniter Forums
image resize rotates images - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: image resize rotates images (/showthread.php?tid=66805)



image resize rotates images - zickig - 12-05-2016

hi all, i have a website were users can upload their photos. but the problem is the images will be resized but also rotated. i dont want this functionality. when i try it locally it works without a problem. doesnt rotate (win10). but when i try it on live site it rotates. could be a linux hosting problem ?

any ideas why this happens ? any solutions ?

here you can see my code:
PHP Code:
$data $this->upload->data();
 
           
            $img_url 
$data['file_name'];

 
           $this->load->library('image_lib');

 
           $config_res['source_image'] = './assets/user_uploads/' $img_url;
 
           $config_res['maintain_ratio'] = TRUE;
 
           $config_res['width'] = 1024;
 
           $config_res['height'] = 768;


 
           $this->image_lib->initialize($config_res);

 
           $this->image_lib->resize();

 
           $this->image_lib->clear(); 



RE: image resize rotates images - zickig - 12-06-2016

this is really important to me. any ideas ? i am considering changing the framework Sad


RE: image resize rotates images - spjonez - 12-07-2016

(12-06-2016, 01:17 AM)zickig Wrote: this is really important to me. any ideas ? i am considering changing the framework Sad

Are you sure it's not EXIF data on the image itself?