-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexif-orientation-f3.html
437 lines (390 loc) · 12.8 KB
/
exif-orientation-f3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<html>
<head>
<title>
HTML Dump (exif-orientation-f3.jpg)</title>
<style type="text/css">
<!--
/* character style ID's */
.D { color: #000000 } /* default color */
.V { color: #ff0000 } /* duplicate block 1 */
.W { color: #004400 } /* normal block 1 */
.X { color: #ff4488 } /* duplicate block 2 */
.Y { color: #448844 } /* normal block 2 */
.U { color: #cc8844 } /* unused data block */
.H { color: #0000ff } /* highlighted tag name */
.F { color: #aa00dd } /* actual offset differs */
.M { text-decoration: underline } /* maker notes data */
.tt { /* tooltip text */
visibility: hidden;
position: absolute;
white-space: nowrap;
top: 0;
left: 0;
font-family: Verdana, sans-serif;
font-size: .7em;
padding: 2px 4px;
border: 1px solid gray;
z-index: 3;
}
.tb { /* tooltip background */
visibility: hidden;
position: absolute;
background: #ffffdd;
zoom: 1;
-moz-opacity: 0.8;
-khtml-opacity: 0.8;
-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=80)';
filter: alpha(opacity=80);
opacity: 0.8;
z-index: 2;
}
/* table styles */
table.dump {
border-top: 1px solid gray;
border-bottom: 1px solid gray;
}
table.dump td { padding: .2em .3em }
td.c2 {
border-left: 1px solid gray;
border-right: 1px solid gray;
}
pre { margin: 0 }
table { font-size: .9em }
body { color: black; background: white }
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!-- Begin
// tooltip positioning constants
var TMAR = 4; // top/left margins
var BMAR = 16; // bottom/right margins (scrollbars may overhang inner dimensions)
var XOFF = 10; // x offset from cursor
var YOFF = 40; // y offset
var YMIN = 10; // minimum y offset
var YTOP = 20; // y offset when above cursor
// common variables
var safari1 = navigator.userAgent.indexOf("Safari/312.6") >= 0;
var ie6 = navigator.userAgent.toLowerCase().indexOf('msie 6') >= 0;
var mspan = new Array;
var hlist, tt, tb;
function GetElementsByClass(classname, tagname) {
var found = new Array();
var list = document.getElementsByTagName(tagname);
var len = list.length;
for (var i=0, j=0; i<len; ++i) {
var classes = list[i].className.split(' ');
for (var k=0; k<classes.length; ++k) {
if (classes[k] == classname) {
found[j++] = list[i];
break;
}
}
}
delete list;
return found;
}
// move tooltip
function move(e)
{
if (!tt) return;
if (ie6 && (tt.style.top == '' || tt.style.top == 0) &&
(tt.style.left == '' || tt.style.left == 0))
{
tt.style.width = tt.offsetWidth + 'px';
tt.style.height = tt.offsetHeight + 'px';
}
var w, h;
// browser inconsistencies make getting window size more complex than it should be,
// and even then we don't know if it is smaller due to scrollbar width
if (typeof(window.innerWidth) == 'number') {
w = window.innerWidth;
h = window.innerHeight;
} else if (document.documentElement && document.documentElement.clientWidth) {
w = document.documentElement.clientWidth;
h = document.documentElement.clientHeight;
} else {
w = document.body.clientWidth;
h = document.body.clientHeight;
}
var x = e.clientX + XOFF;
var y = e.clientY + YOFF;
if (safari1) { // patch for people still using OS X 10.3.9
x -= document.body.scrollLeft + document.documentElement.scrollLeft;
y -= document.body.scrollTop + document.documentElement.scrollTop;
}
var mx = w - BMAR - tt.offsetWidth;
var my = h - BMAR - tt.offsetHeight;
if (y > my + YOFF - YMIN) y = e.clientY - YTOP - tt.offsetHeight;
if (x > mx) x = mx;
if (y > my) y = my;
if (x < TMAR) x = TMAR;
if (y < TMAR) y = TMAR;
x += document.body.scrollLeft + document.documentElement.scrollLeft;
y += document.body.scrollTop + document.documentElement.scrollTop;
tb.style.width = tt.offsetWidth + 'px';
tb.style.height = tt.offsetHeight + 'px';
tt.style.top = tb.style.top = y + 'px';
tt.style.left = tb.style.left = x + 'px';
tt.style.visibility = tb.style.visibility = 'visible';
}
// highlight/unhighlight text
function high(e,on) {
var targ;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) targ = targ.parentNode; // defeat Safari bug
if (!targ.name) targ = targ.parentNode; // go up another level if necessary
if (targ.name && document.getElementsByName) {
// un-highlight current objects
if (hlist) {
for (var i=0; i<hlist.length; ++i) {
hlist[i].style.background = 'transparent';
}
hlist = null;
}
if (tt) {
// hide old tooltip
tt.style.visibility = tb.style.visibility = 'hidden';
tt = null;
}
if (on) {
if (targ.name.substring(0,1) == 't') {
// show our tooltip (ID is different than name to avoid confusing IE)
tt = document.getElementById('p' + targ.name.substring(1));
if (tt) {
tb = document.getElementById('tb');
move(e);
}
}
// highlight anchor elements with the same name
hlist = document.getElementsByName(targ.name);
// use class name to highlight span elements if necessary
for (var i=0; i<mspan.length; ++i) {
if (mspan[i] != targ.name) continue;
var slist = GetElementsByClass(targ.name, 'span');
// add elements from hlist collection to our array
for (var j=0; j<hlist.length; ++j) {
slist[slist.length] = hlist[j];
}
hlist = slist;
break;
}
for (var j=0; j<hlist.length; ++j) {
hlist[j].style.background = '#ffcc99';
}
}
}
}
// End --->
</script></head>
<body><noscript><b class=V>-->
Enable JavaScript for active highlighting and information tool tips!
</b></noscript>
<table class=dump cellspacing=0 cellpadding=2>
<tr><td valign='top'><pre>-000c
0000
000a
0016
0020
0030
0040
0050
0060
0070
0080
0090
00a0
00b0
00c0
00d0
00e0
00f0
0100
0110
0120
0130
0140
0150
0160
0170
0180
0190
01a0
01b0
01c0
01d0
01e0
01f0
0200
0210
0220
0230
0240
0250
0260
0270
0280
0290
02a0
02b0
02c0
02d0
...
0b80
0b90
0ba0
0bb0
0bc0
0bd0
0be0
0bf0
</pre></td><td valign="top"><pre onmouseover="high(event,1)" onmouseout="high(event,0)" onmousemove="move(event)"> <a name=t0 class=W>ff d8</a> <a name=t1 class=Y>ff e1 00 22</a> <a name=t2 class=W>45 78 69 66 00 00</a>
<a name=t3 class=Y>4d 4d 00 2a 00 00 00 08</a> <a name=t4 class=W>00 01</a>
<a name=t5 class=Y>01 12 00 03 00 00 00 01 00 03 00 00</a>
<a name=t6 class=W>00 00 00 00</a> <a name=t7 class=U>ff c0 00 11 08 00
82 00 52 03 01 11 00 02 11 01 03 11 01</a> <a name=t8 class=U>ff c4 00
1f 00 00 01 05 01 01 01 01 01 01 00 00 00 00 00
00 00 00 01 02 03 04 05 06 07 08 09 0a 0b</a> <a name=t9 class=U>ff c4
00 b5 10 00 02 01 03 03 02 04 03 05 05 04 04 00
00 01 7d 01 02 03 00 04 11 05 12 21 31 41 06 13
51 61 07 22 71 14 32 81 91 a1 08 23 42 b1 c1 15
52 d1 f0 24 33 62 72 82 09 0a 16 17 18 19 1a 25
26 27 28 29 2a 34 35 36 37 38 39 3a 43 44 45 46
47 48 49 4a 53 54 55 56 57 58 59 5a 63 64 65 66
67 68 69 6a 73 74 75 76 77 78 79 7a 83 84 85 86
87 88 89 8a 92 93 94 95 96 97 98 99 9a a2 a3 a4
a5 a6 a7 a8 a9 aa b2 b3 b4 b5 b6 b7 b8 b9 ba c2
c3 c4 c5 c6 c7 c8 c9 ca d2 d3 d4 d5 d6 d7 d8 d9
da e1 e2 e3 e4 e5 e6 e7 e8 e9 ea f1 f2 f3 f4 f5
f6 f7 f8 f9 fa</a> <a name=t10 class=U>ff c4 00 1f 01 00 03 01 01 01 01
01 01 01 01 01 00 00 00 00 00 00 01 02 03 04 05
06 07 08 09 0a 0b</a> <a name=t11 class=U>ff c4 00 b5 11 00 02 01 02 04
04 03 04 07 05 04 04 00 01 02 77 00 01 02 03 11
04 05 21 31 06 12 41 51 07 61 71 13 22 32 81 08
14 42 91 a1 b1 c1 09 23 33 52 f0 15 62 72 d1 0a
16 24 34 e1 25 f1 17 18 19 1a 26 27 28 29 2a 35
36 37 38 39 3a 43 44 45 46 47 48 49 4a 53 54 55
56 57 58 59 5a 63 64 65 66 67 68 69 6a 73 74 75
76 77 78 79 7a 82 83 84 85 86 87 88 89 8a 92 93
94 95 96 97 98 99 9a a2 a3 a4 a5 a6 a7 a8 a9 aa
b2 b3 b4 b5 b6 b7 b8 b9 ba c2 c3 c4 c5 c6 c7 c8
c9 ca d2 d3 d4 d5 d6 d7 d8 d9 da e2 e3 e4 e5 e6
e7 e8 e9 ea f2 f3 f4 f5 f6 f7 f8 f9 fa</a> <a name=t12 class=U>ff db 00
43 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01</a> <a name=t13 class=U>ff db 00 43 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01</a> <a name=t14 class=U>ff dd 00 04 00 0b</a> <a name=t15 class=U>ff da 00
0c 03 01 00 02 11 03 11 00 3f 00 fe fe 28 00 a0
02 80 0a 00 28 00 a0 02 80 0a 00 28 00 a0 02 80
3f ff d0 fe fe 28 03 e3 ff 00 db d3 f6 c0 f0 cf
ec 17 fb 28 fc 5d fd ab bc 63 e1 1d 73 c7 7e 1c
f8 45 a1 45 ae ea 7e 15 f0 e5 ed 8e 9f ac ea d0
cb 7b 6f 64 20 b2 bc d4 81 b2 86 40 d7 0a fb a6
1b 76 a9 1c 13 40 1f ca 6f fc 46 e7 fb 27 7f d1
[snip 138 lines]
e1 9a f8 77 ff 00 cc dd 00 1f f0 c9 df b2 bf fd
1b 47 ec ff 00 ff 00 86 6b e1 df ff 00 33 74 01
ea fe 0f f0 37 82 be 1e e8 eb e1 df 00 f8 3f c2
de 07 f0 fa 5c 4f 76 9a 17 83 fc 3f a4 f8 6b 47
4b ab 96 0d 73 72 ba 66 8b 67 63 64 b7 17 0c 03
4f 30 83 cc 95 80 32 33 63 34 01 d4 d0 07 ff d7
fe fe 28 00 a0 02 80 0a 00 28 00 a0 02 80 0a 00
28 00 a0 02 80 3f</a> <a name=t16 class=Y>ff d9</a>
</pre></td><td class=c2 valign="top"><pre onmouseover="high(event,1)" onmouseout="high(event,0)" onmousemove="move(event)"> <a name=t0 class=W>..</a><a name=t1 class=Y>..."</a><a name=t2 class=W>Exif..</a>
<a name=t3 class=Y>MM.*....</a><a name=t4 class=W>..</a>
<a name=t5 class=Y>............</a>
<a name=t6 class=W>....</a><a name=t7 class=U>......
..R..........</a><a name=t8 class=U>...
................
..............</a><a name=t9 class=U>..
................
..}........!1A..
Qa."q.2....#B...
R..$3br........%
&'()*456789:CDEF
GHIJSTUVWXYZcdef
ghijstuvwxyz....
................
................
................
................
.....</a><a name=t10 class=U>...........
................
......</a><a name=t11 class=U>..........
..........w.....
..!1..AQ.aq."2..
.B.....#3R..br..
.$4.%.....&'()*5
6789:CDEFGHIJSTU
VWXYZcdefghijstu
vwxyz...........
................
................
................
.............</a><a name=t12 class=U>...
C...............
................
................
................
..</a><a name=t13 class=U>...C..........
................
................
................
.......</a><a name=t14 class=U>......</a><a name=t15 class=U>...
.........?...(..
....(......(....
?....(..........
...(.]...c..s.~.
.E.E..~.........
.{od ......@....
.v...@..o.F..'..
[snip]
...w............
.G......k....3t.
....7.........?.
....\Ov....?..kG
K...sr.f.gcd....
O0....23c4......
..(......(......
(....?</a><a name=t16 class=Y>..</a>
</pre></td><td valign="top"><pre onmouseover="high(event,1)" onmouseout="high(event,0)" onmousemove="move(event)"><a name=t0 class=W>JPEG header</a> <a name=t1 class=Y>APP1 header</a> <a name=t2 class=W>Exif header</a>
<a name=t3 class=Y>TIFF header</a> <a name=t4 class=W>IFD0 entries</a>
<a name=t5 class=Y>IFD0-00 Orientation</a>
<a name=t6 class=W>Next IFD</a>
<a name=t7 class=U>[JPEG SOF0]</a>
<a name=t8 class=U>[JPEG DHT]</a>
<a name=t9 class=U>[JPEG DHT]</a>
<a name=t10 class=U>[JPEG DHT]</a>
<a name=t11 class=U>[JPEG DHT]</a>
<a name=t12 class=U>[JPEG DQT]</a>
<a name=t13 class=U>[JPEG DQT]</a>
<a name=t14 class=U>[JPEG DRI]</a>
<a name=t15 class=U>[JPEG Image Data]</a>
<a name=t16 class=Y>JPEG EOI</a>
</pre></td></tr></table>
<div id=tb class=tb> </div>
<div id=p0 class=tt><b>JPEG header</b><br>SOI Marker<br>(2 bytes)</div>
<div id=p1 class=tt><b>APP1 header</b><br>Data size: 32 bytes<br>(4 bytes)</div>
<div id=p2 class=tt><b>Exif header</b><br>APP1 data type: Exif<br>(6 bytes)</div>
<div id=p3 class=tt><b>TIFF header</b><br>Byte order: Big endian<br>Identifier: 0x002a<br>IFD0 offset: 0x0008<br>(8 bytes)</div>
<div id=p4 class=tt><b>IFD0 entries</b><br>Entry count: 1<br>(2 bytes)</div>
<div id=p5 class=tt><b>IFD0-00 Orientation</b><br>Tag ID: 0x0112<br>Format: int16u[1]<br>Size: 2 bytes<br>Value: 3</div>
<div id=p6 class=tt><b>Next IFD</b><br>IFD1 offset: 0x0000<br>(4 bytes)</div>
<div id=p7 class=tt>[JPEG SOF0]<br>(19 bytes)</div>
<div id=p8 class=tt>[JPEG DHT]<br>(33 bytes)</div>
<div id=p9 class=tt>[JPEG DHT]<br>(183 bytes)</div>
<div id=p10 class=tt>[JPEG DHT]<br>(33 bytes)</div>
<div id=p11 class=tt>[JPEG DHT]<br>(183 bytes)</div>
<div id=p12 class=tt>[JPEG DQT]<br>(69 bytes)</div>
<div id=p13 class=tt>[JPEG DQT]<br>(69 bytes)</div>
<div id=p14 class=tt>[JPEG DRI]<br>(6 bytes)</div>
<div id=p15 class=tt>[JPEG Image Data]<br>(2441 bytes)</div>
<div id=p16 class=tt><b>JPEG EOI</b><br>(2 bytes)</div>
</body></html>