xref: /PHP-5.3/ext/exif/tests/exif013.phpt (revision 375631c3)
1--TEST--
2Check for exif_read_data, JPEG with IFD and GPS data in Motorola byte-order.
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--INI--
6output_handler=
7zlib.output_compression=0
8--FILE--
9<?php
10var_dump(exif_read_data(dirname(__FILE__).'/image013.jpg'));
11?>
12--EXPECTF--
13array(25) {
14  ["FileName"]=>
15  string(12) "image013.jpg"
16  ["FileDateTime"]=>
17  int(%d)
18  ["FileSize"]=>
19  int(%d)
20  ["FileType"]=>
21  int(2)
22  ["MimeType"]=>
23  string(10) "image/jpeg"
24  ["SectionsFound"]=>
25  string(18) "ANY_TAG, IFD0, GPS"
26  ["COMPUTED"]=>
27  array(8) {
28    ["html"]=>
29    string(20) "width="1" height="1""
30    ["Height"]=>
31    int(1)
32    ["Width"]=>
33    int(1)
34    ["IsColor"]=>
35    int(1)
36    ["ByteOrderMotorola"]=>
37    int(1)
38    ["Copyright"]=>
39    string(24) "Eric Stewart, Hex Editor"
40    ["Copyright.Photographer"]=>
41    string(12) "Eric Stewart"
42    ["Copyright.Editor"]=>
43    string(10) "Hex Editor"
44  }
45  ["ImageDescription"]=>
46  string(15) "My description."
47  ["Make"]=>
48  string(11) "OpenShutter"
49  ["Model"]=>
50  string(8) "OS 1.0.0"
51  ["XResolution"]=>
52  string(4) "72/1"
53  ["YResolution"]=>
54  string(4) "72/1"
55  ["ResolutionUnit"]=>
56  int(2)
57  ["DateTime"]=>
58  string(19) "2008:06:19 01:47:53"
59  ["Artist"]=>
60  string(12) "Eric Stewart"
61  ["Copyright"]=>
62  string(12) "Eric Stewart"
63  ["GPS_IFD_Pointer"]=>
64  int(246)
65  ["GPSVersion"]=>
66  string(4) "��"
67  ["GPSLatitudeRef"]=>
68  string(1) "N"
69  ["GPSLatitude"]=>
70  array(3) {
71    [0]=>
72    string(4) "33/1"
73    [1]=>
74    string(4) "37/1"
75    [2]=>
76    string(3) "0/1"
77  }
78  ["GPSLongitudeRef"]=>
79  string(1) "W"
80  ["GPSLongitude"]=>
81  array(3) {
82    [0]=>
83    string(4) "84/1"
84    [1]=>
85    string(3) "7/1"
86    [2]=>
87    string(3) "0/1"
88  }
89  ["GPSAltitudeRef"]=>
90  string(1) "�"
91  ["GPSAltitude"]=>
92  string(5) "295/1"
93  ["GPSTimeStamp"]=>
94  array(3) {
95    [0]=>
96    string(3) "1/1"
97    [1]=>
98    string(4) "47/1"
99    [2]=>
100    string(4) "53/1"
101  }
102}
103--CREDIT--
104Eric Stewart <ericleestewart@gmail.com>
105