Re: Keep EXIF Data ?

See all posts See thread Reply

Re: Keep EXIF Data ? new!
by colin, 11 years, 9 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, 9 years, 7 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, 8 years, 9 months ago
Thanks so much for this post. works perfectly!Reply