user1465078
user1465078

Reputation:

Reading exif date from ios photo upload

this seems like a simple question - I have a standard php image upload in place on a website I'm working with that works fine except for an inability to get the DateTime information from photos uploaded via iOS. I'm able to fetch orientation data and rotate images,etc but I can't for the life of me locate any date taken information. The information is retrievable from an iOS photo uploaded via PC (i.e. after it has been imported from the iPhone/iPad) just not from the iDevice itself.

Does anyone know if it's possible to get the date taken from an iOS photo through php upload? If so where should I be looking in the EXIF?

Upvotes: 0

Views: 1737

Answers (2)

NoahP
NoahP

Reputation: 131

Photos uploaded, via safari mobile, are stripped of most of the metadata including datetime and geolocation. The only metadata you receive is:

  • ColorSpace
  • Exif IFD Pointer
  • Orientation
  • PixelXDimension
  • PixelYDimension

If you transfer the photo to your desktop browser and upload then the metadata will exist. Also if you use a Hybrid-Native or Native app you can retain photo metadata.

This data was obtained through testing an EXIF data parser in javascript. I couldn't find actual Apple documentation mentioned this "feature"

Upvotes: 1

paido
paido

Reputation: 76

Using the https://www.php.net/manual/es/function.exif-read-data.php and the FILE FileDateTime =

$arrImageData = read_exif_data($web_dir); $datetime = $arrImageData["FILE"]["FileDateTime"];

As its seems to be, I don't know which EXIF gives the iOS

Upvotes: 0

Related Questions