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();