(PHP4 >= 4.0.1)
read_exif_data -- Read the EXIF headers from a JPEG
Description
array read_exif_data
(string filename)
The read_exif_data() function reads the
EXIF headers from a JPEG image file. It returns an associative
array where the indexes are the Exif header names and the values
are the values associated with those Exif headers. Exif headers
tend to be present in JPEG images generated by digital cameras, but
unfortunately each digital camera maker has a different idea of how
to actually tag their images, so you can't always rely on a specific
Exif header being present.
Példa 1. read_exif_data 1
2 <?php
3 $exif = read_exif_data ('p0001807.jpg');
4 while(list($k,$v)=each($exif)) {
5 echo "$k: $v<br>\n";
6 }
7 ?>
8
9 Output:
10 FileName: p0001807.jpg
11 FileDateTime: 929353056
12 FileSize: 378599
13 CameraMake: Eastman Kodak Company
14 CameraModel: KODAK DC265 ZOOM DIGITAL CAMERA (V01.00)
15 DateTime: 1999:06:14 01:37:36
16 Height: 1024
17 Width: 1536
18 IsColor: 1
19 FlashUsed: 0
20 FocalLength: 8.0mm
21 RawFocalLength: 8
22 ExposureTime: 0.004 s (1/250)
23 RawExposureTime: 0.0040000001899898
24 ApertureFNumber: f/ 9.5
25 RawApertureFNumber: 9.5100002288818
26 FocusDistance: 16.66m
27 RawFocusDistance: 16.659999847412
28 Orientation: 1
29 ExifVersion: 0200
30 |
|
Megjegyzés:
This function is only available in PHP4 compiled using --enable-exif
This function does not require the GD image library.