$exif= exif_read_data($file);
exif_read_data 함수의 매개변수로 jpg파일 경로를 설정해 주면,
exif정보를 읽어들여 배열로 반환한다.
$exif에는 지정된 경로에 존재하는 jpg파일의 exif정보에 대한 배열이 할당된다.
ex) $exif[셔터속도][1/500]
배열 $exif를 출력하는 구문은
foreach($exif as $key => $val){
echo($key.$val."<br>");
}
FileName1.jpg
FileDateTime0
FileSize265919
FileType2
MimeTypeimage/jpeg
SectionsFoundANY_TAG,
IFD0, EXIF, INTEROP, MAKERNOTE
COMPUTEDArray
MakeCanon
ModelCanon EOS
Kiss Digital
N
Orientation1
XResolution72/1
YResolution72/1
ResolutionUnit2
DateTime2006:07:28
15:31:29
YCbCrPositioning2
Exif_IFD_Pointer196
ExposureTime1/1000
FNumber50/10
ExposureProgram3
ISOSpeedRatings1600
ExifVersion0221
DateTimeOriginal2006:07:28
15:31:29
DateTimeDigitized2006:07:28
15:31:29
ComponentsConfiguration
ShutterSpeedValue653118/65536
ApertureValue304340/65536
ExposureBiasValue0/2
MeteringMode5
Flash16
FocalLength77/1