openphoto/frontend — Issue #352: Date time extraction from EXIF not always working
Author: jmathai
Created: 2011-12-04 07:25:09+00:00
State: open

We are looking at `FileDateTime` and `DateTime` which isn't alway accurate. Here is an example where `DateTimeOriginal` and DateTimeDigitized` is the correct field to pull.

array(43) {
["FileName"]=>
string(12) "MK_20352.jpg"
["FileDateTime"]=>
int(1322982803)
["FileSize"]=>
int(1087432)
["FileType"]=>
int(2)
["MimeType"]=>
string(10) "image/jpeg"
["SectionsFound"]=>
string(30) "ANY_TAG, IFD0, THUMBNAIL, EXIF"
["COMPUTED"]=>
array(9) {
["html"]=>
string(25) "width="1499" height="999""
["Height"]=>
int(999)
["Width"]=>
int(1499)
["IsColor"]=>
int(1)
["ByteOrderMotorola"]=>
int(0)
["ApertureFNumber"]=>
string(5) "f/4.0"
["FocusDistance"]=>
string(5) "0.17m"
["Thumbnail.FileType"]=>
int(2)
["Thumbnail.MimeType"]=>
string(10) "image/jpeg"
}
["Make"]=>
string(5) "Canon"
["Model"]=>
string(20) "Canon EOS 5D Mark II"
["XResolution"]=>
string(4) "72/1"
["YResolution"]=>
string(4) "72/1"
["ResolutionUnit"]=>
int(2)
["Software"]=>
string(31) "Adobe Photoshop Lightroom 3.4.1"
["DateTime"]=>
string(19) "2011:12:04 01:43:21"
["Exif_IFD_Pointer"]=>
int(206)
["THUMBNAIL"]=>
array(6) {
["Compression"]=>
int(6)
["XResolution"]=>
string(4) "72/1"
["YResolution"]=>
string(4) "72/1"
["ResolutionUnit"]=>
int(2)
["JPEGInterchangeFormat"]=>
int(820)
["JPEGInterchangeFormatLength"]=>
int(10752)
}
["ExposureTime"]=>
string(6) "1/1600"
["FNumber"]=>
string(3) "4/1"
["ExposureProgram"]=>
int(3)
["ISOSpeedRatings"]=>
int(1600)
["ExifVersion"]=>
string(4) "0230"
["DateTimeOriginal"]=>
string(19) "2011:10:15 15:25:52"
["DateTimeDigitized"]=>
string(19) "2011:10:15 15:25:52"
["ShutterSpeedValue"]=>
string(16) "10643856/1000000"
["ApertureValue"]=>
string(3) "4/1"
["ExposureBiasValue"]=>
string(3) "0/1"
["MaxApertureValue"]=>
string(3) "4/1"
["SubjectDistance"]=>
string(6) "17/100"
["MeteringMode"]=>
int(5)
["Flash"]=>
int(16)
["FocalLength"]=>
string(4) "15/1"
["SubSecTimeOriginal"]=>
string(2) "38"
["SubSecTimeDigitized"]=>
string(2) "38"
["FocalPlaneXResolution"]=>
string(12) "5616000/1459"
["FocalPlaneYResolution"]=>
string(11) "3744000/958"
["FocalPlaneResolutionUnit"]=>
int(2)
["CustomRendered"]=>
int(0)
["ExposureMode"]=>
int(0)
["WhiteBalance"]=>
int(0)
["SceneCaptureType"]=>
int(0)
["UndefinedTag:0xA431"]=>
string(10) "2921501493"
["UndefinedTag:0xA432"]=>
array(4) {
[0]=>
string(3) "8/1"
[1]=>
string(4) "15/1"
[2]=>
string(3) "0/0"
[3]=>
string(3) "0/0"
}
["UndefinedTag:0xA434"]=>
string(25) "EF8-15mm f/4L FISHEYE USM"
}