Welcome Guest, Not a member yet? Register   Sign In
image resize rotates images
#1

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(); 
Reply
#2

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

(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?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB