Re: Keep EXIF Data ?

See all posts See thread Reply

Re: Keep EXIF Data ? new!
by colin, 12 years, 3 months ago
The class doesn't carry EXIF data over to the new images (the feature is planned, but not implemented yet). However, you can do it outside of the class.Reply
Re: Keep EXIF Data ? 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
Re: Keep EXIF Data ? new!
by quack, 9 years, 4 months ago
Thanks so much for this post. works perfectly!Reply