Reply to Re: Temp File Location?

Re: Temp File Location? new!
by dimitrikx, 10 years, 2 months ago
$exif = exif_read_data($_FILES['Filedata']["tmp_name"]);
if(!empty($exif['Orientation'])) {          
  switch($exif['Orientation']) {
    case 8:
      echo 2;
      $handle->image_rotate = 270;
      break;
    case 3:
      echo 3;
      $handle->image_rotate = 180;
      break;
    case 6:
      echo 4;
      $handle->image_rotate = 90;
      break;
  }
}
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important