PHP映像上传后丢失GPS Exif数据

时间:2018-09-27 17:18:50

标签: php image upload gps exif

通过智能手机上传图像时,我丢失了GPS exif数据。

您知道如何使用GPS exif上传吗?

if(isset($_FILES['fupload'])) {

  if(preg_match('/[.](jpg)|(gif)|(png)$/', $_FILES['fupload']['name'])) {

    $filename = $_FILES['fupload']['name'];
    $source = $_FILES['fupload']['tmp_name'];  
    $date = date_create();
    $date = date_timestamp_get($date); 
    $target = $path_to_image_directory . $date . '_' . $filename;

    move_uploaded_file($source, $target);
  }
}

0 个答案:

没有答案