exifreader 4.53.0 → 4.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,6 +105,8 @@ export function get0thIfdOffset(dataView, tiffHeaderOffset, byteOrder) {
105
105
  * offset into the thumbnail IFD, whose entries are otherwise not charged to the
106
106
  * value budget. Defaults to whether tagNames has an IFD_TYPE_1ST dictionary and
107
107
  * tagFilter parses the thumbnail group.
108
+ * @param {Object} [valueOffsets] - Given, receives the offset of the MakerNote
109
+ * value as `MakerNote`, relative to the offset origin.
108
110
  * @returns {Object} The read tags, keyed by tag name.
109
111
  */
110
112
  export function readIfd(
@@ -119,7 +121,8 @@ export function readIfd(
119
121
  groupKey = 'exif',
120
122
  valueBudget = getValueBudget(dataView),
121
123
  tagNames,
122
- readThumbnailIfd = tagNames[IFD_TYPE_1ST] !== undefined && tagFilter.shouldParseGroup('thumbnail')
124
+ readThumbnailIfd = tagNames[IFD_TYPE_1ST] !== undefined && tagFilter.shouldParseGroup('thumbnail'),
125
+ valueOffsets = undefined
123
126
  ) {
124
127
  const FIELD_COUNT_SIZE = Types.getTypeSize('SHORT');
125
128
  const FIELD_SIZE = IFD_ENTRY_LENGTH;
@@ -160,9 +163,12 @@ export function readIfd(
160
163
  if (computed) {
161
164
  tags[tag.name].computed = getComputedTagValue(tag.tagType, tag.value);
162
165
  }
163
- if (tag.name === 'MakerNote' || (ifdType === IFD_TYPE_PENTAX && tag.name === 'LevelInfo')) {
166
+ if (ifdType === IFD_TYPE_PENTAX && tag.name === 'LevelInfo') {
164
167
  tags[tag.name].__offset = tag.__offset;
165
168
  }
169
+ if (valueOffsets !== undefined && tag.name === 'MakerNote') {
170
+ valueOffsets.MakerNote = tag.__offset;
171
+ }
166
172
  }
167
173
 
168
174
  offset += FIELD_SIZE;
@@ -550,23 +556,3 @@ function getComputedRationalValue(rational) {
550
556
 
551
557
  return numerator / denominator;
552
558
  }
553
-
554
- /**
555
- * Removes the thumbnail IFD from the tags of an embedded Exif block and reads
556
- * its image with `readThumbnail`, when given.
557
- *
558
- * @returns {object|undefined} The thumbnail tags when an image was read.
559
- */
560
- export function takeEmbeddedExifThumbnail(readTags, dataView, tiffHeaderOffset, readThumbnail) {
561
- const thumbnailIfdTags = readTags.Thumbnail;
562
- if (!thumbnailIfdTags) {
563
- return undefined;
564
- }
565
- delete readTags.Thumbnail;
566
-
567
- if (!readThumbnail) {
568
- return undefined;
569
- }
570
- const thumbnail = readThumbnail(dataView, thumbnailIfdTags, tiffHeaderOffset);
571
- return thumbnail.image ? thumbnail : undefined;
572
- }
package/src/tags.js CHANGED
@@ -18,10 +18,18 @@ export default {
18
18
  read,
19
19
  };
20
20
 
21
- // One decoded-value budget is shared by the 0th, sub-, and thumbnail IFD reads
22
- // so their combined decoded values stay proportional to the input. A caller
23
- // passes its own to share it with later reads (loadView: maker note, MPF
24
- // and decompressed Exif).
21
+ /**
22
+ * Reads the 0th, Exif, GPS and Interoperability IFDs, and the thumbnail IFD
23
+ * when asked to.
24
+ *
25
+ * One decoded-value budget is shared by the IFD reads so their combined
26
+ * decoded values stay proportional to the input. A caller passes its own to
27
+ * share it with later reads (the maker note, MPF and decompressed Exif).
28
+ *
29
+ * @returns {{tags: Object, byteOrder: number, makerNoteOffset: (number|undefined)}}
30
+ * `makerNoteOffset` is the MakerNote value's offset relative to the TIFF
31
+ * header, for the maker note readers.
32
+ */
25
33
  function read(
26
34
  dataView,
27
35
  tiffHeaderOffset,
@@ -33,15 +41,16 @@ function read(
33
41
  readThumbnailIfd = undefined
34
42
  ) {
35
43
  const byteOrder = ByteOrder.getByteOrder(dataView, tiffHeaderOffset);
36
- let tags = read0thIfd(dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames, readThumbnailIfd);
44
+ const valueOffsets = {};
45
+ let tags = read0thIfd(dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames, readThumbnailIfd, valueOffsets);
37
46
  for (let i = 0; i < SUB_IFDS.length; i++) {
38
- tags = readSubIfd(SUB_IFDS[i], tags, dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames);
47
+ tags = readSubIfd(SUB_IFDS[i], tags, dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames, valueOffsets);
39
48
  }
40
49
 
41
- return {tags, byteOrder};
50
+ return {tags, byteOrder, makerNoteOffset: valueOffsets.MakerNote};
42
51
  }
43
52
 
44
- function read0thIfd(dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames, readThumbnailIfd) {
53
+ function read0thIfd(dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames, readThumbnailIfd, valueOffsets) {
45
54
  const ifdOffset = get0thIfdOffset(dataView, tiffHeaderOffset, byteOrder);
46
55
  if (ifdOffset === undefined) {
47
56
  return {};
@@ -58,11 +67,12 @@ function read0thIfd(dataView, tiffHeaderOffset, byteOrder, includeUnknown, compu
58
67
  'exif',
59
68
  valueBudget,
60
69
  tagNames,
61
- readThumbnailIfd
70
+ readThumbnailIfd,
71
+ valueOffsets
62
72
  );
63
73
  }
64
74
 
65
- function readSubIfd(subIfd, tags, dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames) {
75
+ function readSubIfd(subIfd, tags, dataView, tiffHeaderOffset, byteOrder, includeUnknown, computed, tagFilter, valueBudget, tagNames, valueOffsets) {
66
76
  const pointerTag = tags[subIfd.pointerKey];
67
77
  if (pointerTag === undefined) {
68
78
  return tags;
@@ -86,7 +96,9 @@ function readSubIfd(subIfd, tags, dataView, tiffHeaderOffset, byteOrder, include
86
96
  tagFilter,
87
97
  'exif',
88
98
  valueBudget,
89
- tagNames
99
+ tagNames,
100
+ undefined,
101
+ valueOffsets
90
102
  )
91
103
  );
92
104
  }
package/src/thumbnail.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
4
 
5
- import {deferInit, getBase64Image} from './utils.js';
5
+ import {deferInit} from './utils.js';
6
6
 
7
7
  // https://exiftool.org/TagNames/EXIF.html#Compression
8
8
  const COMPRESSION_JPEG = [6, 7, 99];
@@ -11,7 +11,7 @@ export default {
11
11
  get,
12
12
  };
13
13
 
14
- function get(dataView, thumbnailTags, tiffHeaderOffset) {
14
+ function get(dataView, thumbnailTags, tiffHeaderOffset, getBase64Image) {
15
15
  if (hasJpegThumbnail(thumbnailTags)) {
16
16
  const offset = tiffHeaderOffset + thumbnailTags.JPEGInterchangeFormat.value;
17
17
  const length = thumbnailTags.JPEGInterchangeFormatLength.value;
@@ -20,9 +20,11 @@ function get(dataView, thumbnailTags, tiffHeaderOffset) {
20
20
  thumbnailTags.type = 'image/jpeg';
21
21
  const byteOffset = dataView.byteOffset;
22
22
  thumbnailTags.image = dataView.buffer.slice(byteOffset + offset, byteOffset + offset + length);
23
- deferInit(thumbnailTags, 'base64', function () {
24
- return getBase64Image(this.image);
25
- });
23
+ if (getBase64Image) {
24
+ deferInit(thumbnailTags, 'base64', function () {
25
+ return getBase64Image(this.image);
26
+ });
27
+ }
26
28
  }
27
29
  }
28
30
 
package/src/utils.js CHANGED
@@ -280,24 +280,37 @@ export function getCharacterArray(string) {
280
280
  export const MAX_METADATA_BLOCKS = 4096;
281
281
 
282
282
  /**
283
- * Records one metadata block. The list holds at most MAX_METADATA_BLOCKS
284
- * entries; past that, the last entry is widened to cover each further block
285
- * and keeps its own type. Does nothing without a list or a type.
286
- * @param {Array<{type: string, start: number, end: number}>|undefined} metadataBlocks
287
- * @param {string|undefined} type
283
+ * Appends a block to a finder's list and returns it, so that a finder can
284
+ * create a block the first time it meets its kind and update it after that.
285
+ * @param {Array<Object>} blocks
286
+ * @param {Object} block
287
+ * @returns {Object} The block.
288
+ */
289
+ export function addBlock(blocks, block) {
290
+ blocks.push(block);
291
+ return block;
292
+ }
293
+
294
+ /**
295
+ * Records the span of one block for metadataRange. The list holds at most
296
+ * MAX_METADATA_BLOCKS entries; past that, the last entry is widened to cover
297
+ * each further span and keeps its own block. Does nothing without a list or
298
+ * a block.
299
+ * @param {Array<{block: Object, start: number, end: number}>|undefined} ranges
300
+ * @param {Object|undefined} block The block the span belongs to.
288
301
  * @param {number} start
289
302
  * @param {number} end Exclusive.
290
303
  */
291
- export function pushMetadataBlock(metadataBlocks, type, start, end) {
292
- if (!metadataBlocks || !type) {
304
+ export function pushRange(ranges, block, start, end) {
305
+ if (!ranges || !block) {
293
306
  return;
294
307
  }
295
- if (metadataBlocks.length < MAX_METADATA_BLOCKS) {
296
- metadataBlocks.push({type, start, end});
308
+ if (ranges.length < MAX_METADATA_BLOCKS) {
309
+ ranges.push({block, start, end});
297
310
  } else {
298
- const lastBlock = metadataBlocks[metadataBlocks.length - 1];
299
- lastBlock.start = Math.min(lastBlock.start, start);
300
- lastBlock.end = Math.max(lastBlock.end, end);
311
+ const lastRange = ranges[ranges.length - 1];
312
+ lastRange.start = Math.min(lastRange.start, start);
313
+ lastRange.end = Math.max(lastRange.end, end);
301
314
  }
302
315
  }
303
316
 
@@ -370,28 +383,6 @@ export function deferInit(object, key, initializer) {
370
383
  });
371
384
  }
372
385
 
373
- export function getBase64Image(image) {
374
- if (typeof image === 'string' && typeof btoa !== 'undefined') {
375
- // Only tests pass a string. btoa reads it as Latin-1, Buffer.from would use UTF-8.
376
- return btoa(image);
377
- }
378
- if (hasBufferFrom()) {
379
- return Buffer.from(image).toString('base64'); // eslint-disable-line no-undef
380
- }
381
- if (typeof btoa !== 'undefined') {
382
- return btoa(getByteString(new Uint8Array(image)));
383
- }
384
- if (typeof Buffer === 'undefined') {
385
- return undefined;
386
- }
387
- return (new Buffer(image)).toString('base64'); // eslint-disable-line no-undef
388
- }
389
-
390
- function hasBufferFrom() {
391
- // Buffer polyfills before buffer@4.6.0 inherit Uint8Array.from, which returns an empty array for an ArrayBuffer.
392
- return typeof Buffer !== 'undefined' && typeof Buffer.from !== 'undefined' && Buffer.from !== Uint8Array.from; // eslint-disable-line no-undef
393
- }
394
-
395
386
  export function dataUriToBuffer(dataUri) {
396
387
  const commaIndex = dataUri.indexOf(',');
397
388
  const header = dataUri.substring(0, commaIndex);
@@ -519,6 +510,23 @@ export function withDecompressBudget(decompressConfig) {
519
510
  };
520
511
  }
521
512
 
513
+ /**
514
+ * Maps a block's `compression` to the method `decompress` takes. Anything but
515
+ * 'deflate' and 'brotli' is passed through unchanged, so `decompress` rejects
516
+ * it as an unknown method and never selects a custom function for it.
517
+ * @param {string} compression
518
+ * @returns {number|string}
519
+ */
520
+ export function getCompressionMethod(compression) {
521
+ if (compression === 'deflate') {
522
+ return COMPRESSION_METHOD_DEFLATE;
523
+ }
524
+ if (compression === 'brotli') {
525
+ return COMPRESSION_METHOD_BROTLI;
526
+ }
527
+ return compression;
528
+ }
529
+
522
530
  export function decompress(dataView, compressionMethod, encoding, returnType = 'string', decompressConfig) {
523
531
  const maxDecompressedSize = getMaxDecompressedSize(decompressConfig);
524
532
  const budget = getDecompressBudget(decompressConfig, maxDecompressedSize);
@@ -0,0 +1,321 @@
1
+ /* This Source Code Form is subject to the terms of the Mozilla Public
2
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
+
5
+ // Type and count come from CIPA DC-008-2019 §4.6.3 to §4.6.7, level from the
6
+ // compressed column of §4.6.8 Tables 17 to 20: the support level whenever the
7
+ // tag's IFD is written (M mandatory, R recommended, O optional, N and J not
8
+ // allowed). thumbnailLevel is present only where Table 21 (1st IFD) gives a
9
+ // different level. writable: false means the tag is defined outside DC-008 by
10
+ // the source named on its line, which this table does not draw on.
11
+ // Such a tag is N when it describes how a TIFF stores its image data or points
12
+ // at data the writer does not carry, J when a JPEG carries its payload in a
13
+ // marker segment, else O.
14
+ // DEFAULT_FROM_SOF: the value comes from the JPEG SOF segment.
15
+ // DEFAULT_COMPUTED: the writer computes the value (an offset or a length).
16
+
17
+ const DEFAULT_FROM_SOF = 'fromSof';
18
+ const DEFAULT_COMPUTED = 'computed';
19
+
20
+ const tags = [
21
+ {id: 0x000b, ifd: '0th', name: 'ProcessingSoftware', level: 'O', writable: false}, // vendor
22
+ {id: 0x00fe, ifd: '0th', name: 'SubfileType', level: 'N', writable: false}, // TIFF 6.0
23
+ {id: 0x00ff, ifd: '0th', name: 'OldSubfileType', level: 'N', writable: false}, // TIFF 6.0
24
+ {id: 0x0100, ifd: '0th', name: 'ImageWidth', type: ['SHORT', 'LONG'], count: 1, level: 'J'},
25
+ {id: 0x0101, ifd: '0th', name: 'ImageLength', type: ['SHORT', 'LONG'], count: 1, level: 'J'},
26
+ {id: 0x0102, ifd: '0th', name: 'BitsPerSample', type: 'SHORT', count: 3, level: 'J'},
27
+ {id: 0x0103, ifd: '0th', name: 'Compression', type: 'SHORT', count: 1, level: 'J', thumbnailLevel: 'M', default: 6},
28
+ {id: 0x0106, ifd: '0th', name: 'PhotometricInterpretation', type: 'SHORT', count: 1, level: 'N', thumbnailLevel: 'J'},
29
+ {id: 0x0107, ifd: '0th', name: 'Thresholding', level: 'N', writable: false}, // TIFF 6.0
30
+ {id: 0x0108, ifd: '0th', name: 'CellWidth', level: 'N', writable: false}, // TIFF 6.0
31
+ {id: 0x0109, ifd: '0th', name: 'CellLength', level: 'N', writable: false}, // TIFF 6.0
32
+ {id: 0x010a, ifd: '0th', name: 'FillOrder', level: 'N', writable: false}, // TIFF 6.0
33
+ {id: 0x010d, ifd: '0th', name: 'DocumentName', level: 'O', writable: false}, // TIFF 6.0
34
+ {id: 0x010e, ifd: '0th', name: 'ImageDescription', type: 'ASCII', count: 'any', level: 'R', thumbnailLevel: 'O'},
35
+ {id: 0x010f, ifd: '0th', name: 'Make', type: 'ASCII', count: 'any', level: 'R', thumbnailLevel: 'O'},
36
+ {id: 0x0110, ifd: '0th', name: 'Model', type: 'ASCII', count: 'any', level: 'R', thumbnailLevel: 'O'},
37
+ {id: 0x0111, ifd: '0th', name: 'StripOffsets', type: ['SHORT', 'LONG'], count: 'any', level: 'N'},
38
+ {id: 0x0112, ifd: '0th', name: 'Orientation', type: 'SHORT', count: 1, level: 'R', thumbnailLevel: 'O'},
39
+ {id: 0x0115, ifd: '0th', name: 'SamplesPerPixel', type: 'SHORT', count: 1, level: 'J'},
40
+ {id: 0x0116, ifd: '0th', name: 'RowsPerStrip', type: ['SHORT', 'LONG'], count: 1, level: 'N'},
41
+ {id: 0x0117, ifd: '0th', name: 'StripByteCounts', type: ['SHORT', 'LONG'], count: 'any', level: 'N'},
42
+ {id: 0x0118, ifd: '0th', name: 'MinSampleValue', level: 'N', writable: false}, // TIFF 6.0
43
+ {id: 0x0119, ifd: '0th', name: 'MaxSampleValue', level: 'N', writable: false}, // TIFF 6.0
44
+ {id: 0x011a, ifd: '0th', name: 'XResolution', type: 'RATIONAL', count: 1, level: 'M', default: [72, 1]},
45
+ {id: 0x011b, ifd: '0th', name: 'YResolution', type: 'RATIONAL', count: 1, level: 'M', default: [72, 1]},
46
+ {id: 0x011c, ifd: '0th', name: 'PlanarConfiguration', type: 'SHORT', count: 1, level: 'J'},
47
+ {id: 0x011d, ifd: '0th', name: 'PageName', level: 'O', writable: false}, // TIFF 6.0
48
+ {id: 0x011e, ifd: '0th', name: 'XPosition', level: 'O', writable: false}, // TIFF 6.0
49
+ {id: 0x011f, ifd: '0th', name: 'YPosition', level: 'O', writable: false}, // TIFF 6.0
50
+ {id: 0x0122, ifd: '0th', name: 'GrayResponseUnit', level: 'N', writable: false}, // TIFF 6.0
51
+ {id: 0x0128, ifd: '0th', name: 'ResolutionUnit', type: 'SHORT', count: 1, level: 'M', default: 2},
52
+ {id: 0x0129, ifd: '0th', name: 'PageNumber', level: 'O', writable: false}, // TIFF 6.0
53
+ {id: 0x012d, ifd: '0th', name: 'TransferFunction', type: 'SHORT', count: 768, level: 'O'},
54
+ {id: 0x0131, ifd: '0th', name: 'Software', type: 'ASCII', count: 'any', level: 'O'},
55
+ {id: 0x0132, ifd: '0th', name: 'DateTime', type: 'ASCII', count: 20, level: 'R', thumbnailLevel: 'O'},
56
+ {id: 0x013b, ifd: '0th', name: 'Artist', type: 'ASCII', count: 'any', level: 'O'},
57
+ {id: 0x013c, ifd: '0th', name: 'HostComputer', level: 'O', writable: false}, // TIFF 6.0
58
+ {id: 0x013d, ifd: '0th', name: 'Predictor', level: 'N', writable: false}, // TIFF 6.0
59
+ {id: 0x013e, ifd: '0th', name: 'WhitePoint', type: 'RATIONAL', count: 2, level: 'O'},
60
+ {id: 0x013f, ifd: '0th', name: 'PrimaryChromaticities', type: 'RATIONAL', count: 6, level: 'O'},
61
+ {id: 0x0141, ifd: '0th', name: 'HalftoneHints', level: 'O', writable: false}, // TIFF 6.0
62
+ {id: 0x0142, ifd: '0th', name: 'TileWidth', level: 'N', writable: false}, // TIFF 6.0
63
+ {id: 0x0143, ifd: '0th', name: 'TileLength', level: 'N', writable: false}, // TIFF 6.0
64
+ {id: 0x014a, ifd: '0th', name: 'A100DataOffset', level: 'N', writable: false}, // vendor
65
+ {id: 0x014c, ifd: '0th', name: 'InkSet', level: 'N', writable: false}, // TIFF 6.0
66
+ {id: 0x0151, ifd: '0th', name: 'TargetPrinter', level: 'O', writable: false}, // TIFF 6.0
67
+ {id: 0x0152, ifd: '0th', name: 'ExtraSamples', level: 'N', writable: false}, // TIFF 6.0
68
+ {id: 0x0153, ifd: '0th', name: 'SampleFormat', level: 'N', writable: false}, // TIFF 6.0
69
+ {id: 0x0201, ifd: '0th', name: 'JPEGInterchangeFormat', type: 'LONG', count: 1, level: 'N', thumbnailLevel: 'M', default: DEFAULT_COMPUTED},
70
+ {id: 0x0202, ifd: '0th', name: 'JPEGInterchangeFormatLength', type: 'LONG', count: 1, level: 'N', thumbnailLevel: 'M', default: DEFAULT_COMPUTED},
71
+ {id: 0x0211, ifd: '0th', name: 'YCbCrCoefficients', type: 'RATIONAL', count: 3, level: 'O'},
72
+ {id: 0x0212, ifd: '0th', name: 'YCbCrSubSampling', type: 'SHORT', count: 2, level: 'J'},
73
+ {id: 0x0213, ifd: '0th', name: 'YCbCrPositioning', type: 'SHORT', count: 1, level: 'M', thumbnailLevel: 'O', default: 1},
74
+ {id: 0x0214, ifd: '0th', name: 'ReferenceBlackWhite', type: 'RATIONAL', count: 6, level: 'O'},
75
+ {id: 0x02bc, ifd: '0th', name: 'ApplicationNotes', level: 'J', writable: false}, // XMP (Adobe)
76
+ {id: 0x4746, ifd: '0th', name: 'Rating', level: 'O', writable: false}, // Microsoft
77
+ {id: 0x4749, ifd: '0th', name: 'RatingPercent', level: 'O', writable: false}, // Microsoft
78
+ {id: 0x8298, ifd: '0th', name: 'Copyright', type: 'ASCII', count: 'any', level: 'O'},
79
+ {id: 0x830e, ifd: '0th', name: 'PixelScale', level: 'O', writable: false}, // GeoTIFF
80
+ {id: 0x83bb, ifd: '0th', name: 'IPTC-NAA', level: 'J', writable: false}, // IPTC
81
+ {id: 0x8480, ifd: '0th', name: 'IntergraphMatrix', level: 'O', writable: false}, // vendor
82
+ {id: 0x8482, ifd: '0th', name: 'ModelTiePoint', level: 'O', writable: false}, // GeoTIFF
83
+ {id: 0x8546, ifd: '0th', name: 'SEMInfo', level: 'O', writable: false}, // vendor
84
+ {id: 0x85d8, ifd: '0th', name: 'ModelTransform', level: 'O', writable: false}, // GeoTIFF
85
+ {id: 0x8649, ifd: '0th', name: 'PhotoshopSettings', level: 'J', writable: false}, // Photoshop
86
+ {id: 0x8769, ifd: '0th', name: 'Exif IFD Pointer', type: 'LONG', count: 1, level: 'M', thumbnailLevel: 'O', default: DEFAULT_COMPUTED},
87
+ {id: 0x8773, ifd: '0th', name: 'ICC_Profile', level: 'J', writable: false}, // ICC
88
+ {id: 0x87af, ifd: '0th', name: 'GeoTiffDirectory', level: 'O', writable: false}, // GeoTIFF
89
+ {id: 0x87b0, ifd: '0th', name: 'GeoTiffDoubleParams', level: 'O', writable: false}, // GeoTIFF
90
+ {id: 0x87b1, ifd: '0th', name: 'GeoTiffAsciiParams', level: 'O', writable: false}, // GeoTIFF
91
+ {id: 0x8825, ifd: '0th', name: 'GPS Info IFD Pointer', type: 'LONG', count: 1, level: 'O'},
92
+ {id: 0x9c9b, ifd: '0th', name: 'XPTitle', level: 'O', writable: false}, // Microsoft
93
+ {id: 0x9c9c, ifd: '0th', name: 'XPComment', level: 'O', writable: false}, // Microsoft
94
+ {id: 0x9c9d, ifd: '0th', name: 'XPAuthor', level: 'O', writable: false}, // Microsoft
95
+ {id: 0x9c9e, ifd: '0th', name: 'XPKeywords', level: 'O', writable: false}, // Microsoft
96
+ {id: 0x9c9f, ifd: '0th', name: 'XPSubject', level: 'O', writable: false}, // Microsoft
97
+ {id: 0xa480, ifd: '0th', name: 'GDALMetadata', level: 'O', writable: false}, // GDAL
98
+ {id: 0xa481, ifd: '0th', name: 'GDALNoData', level: 'O', writable: false}, // GDAL
99
+ {id: 0xc4a5, ifd: '0th', name: 'PrintIM', level: 'O', writable: false}, // vendor
100
+ {id: 0xc613, ifd: '0th', name: 'DNGBackwardVersion', level: 'O', writable: false}, // DNG
101
+ {id: 0xc614, ifd: '0th', name: 'UniqueCameraModel', level: 'O', writable: false}, // DNG
102
+ {id: 0xc615, ifd: '0th', name: 'LocalizedCameraModel', level: 'O', writable: false}, // DNG
103
+ {id: 0xc621, ifd: '0th', name: 'ColorMatrix1', level: 'O', writable: false}, // DNG
104
+ {id: 0xc622, ifd: '0th', name: 'ColorMatrix2', level: 'O', writable: false}, // DNG
105
+ {id: 0xc623, ifd: '0th', name: 'CameraCalibration1', level: 'O', writable: false}, // DNG
106
+ {id: 0xc624, ifd: '0th', name: 'CameraCalibration2', level: 'O', writable: false}, // DNG
107
+ {id: 0xc625, ifd: '0th', name: 'ReductionMatrix1', level: 'O', writable: false}, // DNG
108
+ {id: 0xc626, ifd: '0th', name: 'ReductionMatrix2', level: 'O', writable: false}, // DNG
109
+ {id: 0xc627, ifd: '0th', name: 'AnalogBalance', level: 'O', writable: false}, // DNG
110
+ {id: 0xc628, ifd: '0th', name: 'AsShotNeutral', level: 'O', writable: false}, // DNG
111
+ {id: 0xc629, ifd: '0th', name: 'AsShotWhiteXY', level: 'O', writable: false}, // DNG
112
+ {id: 0xc62a, ifd: '0th', name: 'BaselineExposure', level: 'O', writable: false}, // DNG
113
+ {id: 0xc62b, ifd: '0th', name: 'BaselineNoise', level: 'O', writable: false}, // DNG
114
+ {id: 0xc62c, ifd: '0th', name: 'BaselineSharpness', level: 'O', writable: false}, // DNG
115
+ {id: 0xc62e, ifd: '0th', name: 'LinearResponseLimit', level: 'O', writable: false}, // DNG
116
+ {id: 0xc62f, ifd: '0th', name: 'CameraSerialNumber', level: 'O', writable: false}, // DNG
117
+ {id: 0xc630, ifd: '0th', name: 'DNGLensInfo', level: 'O', writable: false}, // DNG
118
+ {id: 0xc633, ifd: '0th', name: 'ShadowScale', level: 'O', writable: false}, // DNG
119
+ {id: 0xc635, ifd: '0th', name: 'MakerNoteSafety', level: 'O', writable: false}, // DNG
120
+ {id: 0xc65a, ifd: '0th', name: 'CalibrationIlluminant1', level: 'O', writable: false}, // DNG
121
+ {id: 0xc65b, ifd: '0th', name: 'CalibrationIlluminant2', level: 'O', writable: false}, // DNG
122
+ {id: 0xc65d, ifd: '0th', name: 'RawDataUniqueID', level: 'O', writable: false}, // DNG
123
+ {id: 0xc68b, ifd: '0th', name: 'OriginalRawFileName', level: 'O', writable: false}, // DNG
124
+ {id: 0xc68c, ifd: '0th', name: 'OriginalRawFileData', level: 'O', writable: false}, // DNG
125
+ {id: 0xc68f, ifd: '0th', name: 'AsShotICCProfile', level: 'O', writable: false}, // DNG
126
+ {id: 0xc690, ifd: '0th', name: 'AsShotPreProfileMatrix', level: 'O', writable: false}, // DNG
127
+ {id: 0xc691, ifd: '0th', name: 'CurrentICCProfile', level: 'O', writable: false}, // DNG
128
+ {id: 0xc692, ifd: '0th', name: 'CurrentPreProfileMatrix', level: 'O', writable: false}, // DNG
129
+ {id: 0xc6bf, ifd: '0th', name: 'ColorimetricReference', level: 'O', writable: false}, // DNG
130
+ {id: 0xc6c5, ifd: '0th', name: 'SRawType', level: 'O', writable: false}, // vendor
131
+ {id: 0xc6d2, ifd: '0th', name: 'PanasonicTitle', level: 'O', writable: false}, // vendor
132
+ {id: 0xc6d3, ifd: '0th', name: 'PanasonicTitle2', level: 'O', writable: false}, // vendor
133
+ {id: 0xc6f3, ifd: '0th', name: 'CameraCalibrationSig', level: 'O', writable: false}, // DNG
134
+ {id: 0xc6f4, ifd: '0th', name: 'ProfileCalibrationSig', level: 'O', writable: false}, // DNG
135
+ {id: 0xc6f5, ifd: '0th', name: 'ProfileIFD', level: 'N', writable: false}, // DNG
136
+ {id: 0xc6f6, ifd: '0th', name: 'AsShotProfileName', level: 'O', writable: false}, // DNG
137
+ {id: 0xc6f8, ifd: '0th', name: 'ProfileName', level: 'O', writable: false}, // DNG
138
+ {id: 0xc6f9, ifd: '0th', name: 'ProfileHueSatMapDims', level: 'O', writable: false}, // DNG
139
+ {id: 0xc6fa, ifd: '0th', name: 'ProfileHueSatMapData1', level: 'O', writable: false}, // DNG
140
+ {id: 0xc6fb, ifd: '0th', name: 'ProfileHueSatMapData2', level: 'O', writable: false}, // DNG
141
+ {id: 0xc6fc, ifd: '0th', name: 'ProfileToneCurve', level: 'O', writable: false}, // DNG
142
+ {id: 0xc6fd, ifd: '0th', name: 'ProfileEmbedPolicy', level: 'O', writable: false}, // DNG
143
+ {id: 0xc6fe, ifd: '0th', name: 'ProfileCopyright', level: 'O', writable: false}, // DNG
144
+ {id: 0xc714, ifd: '0th', name: 'ForwardMatrix1', level: 'O', writable: false}, // DNG
145
+ {id: 0xc715, ifd: '0th', name: 'ForwardMatrix2', level: 'O', writable: false}, // DNG
146
+ {id: 0xc716, ifd: '0th', name: 'PreviewApplicationName', level: 'O', writable: false}, // DNG
147
+ {id: 0xc717, ifd: '0th', name: 'PreviewApplicationVersion', level: 'O', writable: false}, // DNG
148
+ {id: 0xc718, ifd: '0th', name: 'PreviewSettingsName', level: 'O', writable: false}, // DNG
149
+ {id: 0xc719, ifd: '0th', name: 'PreviewSettingsDigest', level: 'O', writable: false}, // DNG
150
+ {id: 0xc71a, ifd: '0th', name: 'PreviewColorSpace', level: 'O', writable: false}, // DNG
151
+ {id: 0xc71b, ifd: '0th', name: 'PreviewDateTime', level: 'O', writable: false}, // DNG
152
+ {id: 0xc71c, ifd: '0th', name: 'RawImageDigest', level: 'O', writable: false}, // DNG
153
+ {id: 0xc71d, ifd: '0th', name: 'OriginalRawFileDigest', level: 'O', writable: false}, // DNG
154
+ {id: 0xc725, ifd: '0th', name: 'ProfileLookTableDims', level: 'O', writable: false}, // DNG
155
+ {id: 0xc726, ifd: '0th', name: 'ProfileLookTableData', level: 'O', writable: false}, // DNG
156
+ {id: 0xc763, ifd: '0th', name: 'TimeCodes', level: 'O', writable: false}, // DNG
157
+ {id: 0xc764, ifd: '0th', name: 'FrameRate', level: 'O', writable: false}, // DNG
158
+ {id: 0xc772, ifd: '0th', name: 'TStop', level: 'O', writable: false}, // DNG
159
+ {id: 0xc789, ifd: '0th', name: 'ReelName', level: 'O', writable: false}, // DNG
160
+ {id: 0xc791, ifd: '0th', name: 'OriginalDefaultFinalSize', level: 'O', writable: false}, // DNG
161
+ {id: 0xc792, ifd: '0th', name: 'OriginalBestQualitySize', level: 'O', writable: false}, // DNG
162
+ {id: 0xc793, ifd: '0th', name: 'OriginalDefaultCropSize', level: 'O', writable: false}, // DNG
163
+ {id: 0xc7a1, ifd: '0th', name: 'CameraLabel', level: 'O', writable: false}, // DNG
164
+ {id: 0xc7a3, ifd: '0th', name: 'ProfileHueSatMapEncoding', level: 'O', writable: false}, // DNG
165
+ {id: 0xc7a4, ifd: '0th', name: 'ProfileLookTableEncoding', level: 'O', writable: false}, // DNG
166
+ {id: 0xc7a5, ifd: '0th', name: 'BaselineExposureOffset', level: 'O', writable: false}, // DNG
167
+ {id: 0xc7a6, ifd: '0th', name: 'DefaultBlackRender', level: 'O', writable: false}, // DNG
168
+ {id: 0xc7a7, ifd: '0th', name: 'NewRawImageDigest', level: 'O', writable: false}, // DNG
169
+ {id: 0xc7a8, ifd: '0th', name: 'RawToPreviewGain', level: 'O', writable: false}, // DNG
170
+
171
+ {id: 0x829a, ifd: 'exif', name: 'ExposureTime', type: 'RATIONAL', count: 1, level: 'R'},
172
+ {id: 0x829d, ifd: 'exif', name: 'FNumber', type: 'RATIONAL', count: 1, level: 'O'},
173
+ {id: 0x8822, ifd: 'exif', name: 'ExposureProgram', type: 'SHORT', count: 1, level: 'O'},
174
+ {id: 0x8824, ifd: 'exif', name: 'SpectralSensitivity', type: 'ASCII', count: 'any', level: 'O'},
175
+ {id: 0x8827, ifd: 'exif', name: 'ISOSpeedRatings', type: 'SHORT', count: 'any', level: 'O'},
176
+ {id: 0x8828, ifd: 'exif', name: 'OECF', type: 'UNDEFINED', count: 'any', level: 'O'},
177
+ {id: 0x882a, ifd: 'exif', name: 'TimeZoneOffset', level: 'O', writable: false}, // TIFF/EP
178
+ {id: 0x882b, ifd: 'exif', name: 'SelfTimerMode', level: 'O', writable: false}, // TIFF/EP
179
+ {id: 0x8830, ifd: 'exif', name: 'SensitivityType', type: 'SHORT', count: 1, level: 'O'},
180
+ {id: 0x8831, ifd: 'exif', name: 'StandardOutputSensitivity', type: 'LONG', count: 1, level: 'O'},
181
+ {id: 0x8832, ifd: 'exif', name: 'RecommendedExposureIndex', type: 'LONG', count: 1, level: 'O'},
182
+ {id: 0x8833, ifd: 'exif', name: 'ISOSpeed', type: 'LONG', count: 1, level: 'O'},
183
+ {id: 0x8834, ifd: 'exif', name: 'ISOSpeedLatitudeyyy', type: 'LONG', count: 1, level: 'O'},
184
+ {id: 0x8835, ifd: 'exif', name: 'ISOSpeedLatitudezzz', type: 'LONG', count: 1, level: 'O'},
185
+ {id: 0x9000, ifd: 'exif', name: 'ExifVersion', type: 'UNDEFINED', count: 4, level: 'M', default: [0x30, 0x32, 0x33, 0x32]},
186
+ {id: 0x9003, ifd: 'exif', name: 'DateTimeOriginal', type: 'ASCII', count: 20, level: 'O'},
187
+ {id: 0x9004, ifd: 'exif', name: 'DateTimeDigitized', type: 'ASCII', count: 20, level: 'O'},
188
+ {id: 0x9009, ifd: 'exif', name: 'GooglePlusUploadCode', level: 'O', writable: false}, // vendor
189
+ {id: 0x9010, ifd: 'exif', name: 'OffsetTime', type: 'ASCII', count: 7, level: 'O'},
190
+ {id: 0x9011, ifd: 'exif', name: 'OffsetTimeOriginal', type: 'ASCII', count: 7, level: 'O'},
191
+ {id: 0x9012, ifd: 'exif', name: 'OffsetTimeDigitized', type: 'ASCII', count: 7, level: 'O'},
192
+ {id: 0x9101, ifd: 'exif', name: 'ComponentsConfiguration', type: 'UNDEFINED', count: 4, level: 'M', default: [1, 2, 3, 0]},
193
+ {id: 0x9102, ifd: 'exif', name: 'CompressedBitsPerPixel', type: 'RATIONAL', count: 1, level: 'O'},
194
+ {id: 0x9201, ifd: 'exif', name: 'ShutterSpeedValue', type: 'SRATIONAL', count: 1, level: 'O'},
195
+ {id: 0x9202, ifd: 'exif', name: 'ApertureValue', type: 'RATIONAL', count: 1, level: 'O'},
196
+ {id: 0x9203, ifd: 'exif', name: 'BrightnessValue', type: 'SRATIONAL', count: 1, level: 'O'},
197
+ {id: 0x9204, ifd: 'exif', name: 'ExposureBiasValue', type: 'SRATIONAL', count: 1, level: 'O'},
198
+ {id: 0x9205, ifd: 'exif', name: 'MaxApertureValue', type: 'RATIONAL', count: 1, level: 'O'},
199
+ {id: 0x9206, ifd: 'exif', name: 'SubjectDistance', type: 'RATIONAL', count: 1, level: 'O'},
200
+ {id: 0x9207, ifd: 'exif', name: 'MeteringMode', type: 'SHORT', count: 1, level: 'O'},
201
+ {id: 0x9208, ifd: 'exif', name: 'LightSource', type: 'SHORT', count: 1, level: 'O'},
202
+ {id: 0x9209, ifd: 'exif', name: 'Flash', type: 'SHORT', count: 1, level: 'R'},
203
+ {id: 0x920a, ifd: 'exif', name: 'FocalLength', type: 'RATIONAL', count: 1, level: 'O'},
204
+ {id: 0x9211, ifd: 'exif', name: 'ImageNumber', level: 'O', writable: false}, // TIFF/EP
205
+ {id: 0x9212, ifd: 'exif', name: 'SecurityClassification', level: 'O', writable: false}, // TIFF/EP
206
+ {id: 0x9213, ifd: 'exif', name: 'ImageHistory', level: 'O', writable: false}, // TIFF/EP
207
+ {id: 0x9214, ifd: 'exif', name: 'SubjectArea', type: 'SHORT', count: 'any', level: 'O'}, // DC-008 count: 2 or 3 or 4
208
+ {id: 0x927c, ifd: 'exif', name: 'MakerNote', type: 'UNDEFINED', count: 'any', level: 'O'},
209
+ {id: 0x9286, ifd: 'exif', name: 'UserComment', type: 'UNDEFINED', count: 'any', level: 'O'},
210
+ {id: 0x9290, ifd: 'exif', name: 'SubSecTime', type: 'ASCII', count: 'any', level: 'O'},
211
+ {id: 0x9291, ifd: 'exif', name: 'SubSecTimeOriginal', type: 'ASCII', count: 'any', level: 'O'},
212
+ {id: 0x9292, ifd: 'exif', name: 'SubSecTimeDigitized', type: 'ASCII', count: 'any', level: 'O'},
213
+ {id: 0x935c, ifd: 'exif', name: 'ImageSourceData', level: 'O', writable: false}, // Photoshop
214
+ {id: 0x9400, ifd: 'exif', name: 'AmbientTemperature', type: 'SRATIONAL', count: 1, level: 'O'},
215
+ {id: 0x9401, ifd: 'exif', name: 'Humidity', type: 'RATIONAL', count: 1, level: 'O'},
216
+ {id: 0x9402, ifd: 'exif', name: 'Pressure', type: 'RATIONAL', count: 1, level: 'O'},
217
+ {id: 0x9403, ifd: 'exif', name: 'WaterDepth', type: 'SRATIONAL', count: 1, level: 'O'},
218
+ {id: 0x9404, ifd: 'exif', name: 'Acceleration', type: 'RATIONAL', count: 1, level: 'O'},
219
+ {id: 0x9405, ifd: 'exif', name: 'CameraElevationAngle', type: 'SRATIONAL', count: 1, level: 'O'},
220
+ {id: 0xa000, ifd: 'exif', name: 'FlashpixVersion', type: 'UNDEFINED', count: 4, level: 'M', default: [0x30, 0x31, 0x30, 0x30]},
221
+ {id: 0xa001, ifd: 'exif', name: 'ColorSpace', type: 'SHORT', count: 1, level: 'M', default: 0xffff},
222
+ {id: 0xa002, ifd: 'exif', name: 'PixelXDimension', type: ['SHORT', 'LONG'], count: 1, level: 'M', default: DEFAULT_FROM_SOF},
223
+ {id: 0xa003, ifd: 'exif', name: 'PixelYDimension', type: ['SHORT', 'LONG'], count: 1, level: 'M', default: DEFAULT_FROM_SOF},
224
+ {id: 0xa004, ifd: 'exif', name: 'RelatedSoundFile', type: 'ASCII', count: 13, level: 'O'},
225
+ {id: 0xa005, ifd: 'exif', name: 'Interoperability IFD Pointer', type: 'LONG', count: 1, level: 'O'},
226
+ {id: 0xa20b, ifd: 'exif', name: 'FlashEnergy', type: 'RATIONAL', count: 1, level: 'O'},
227
+ {id: 0xa20c, ifd: 'exif', name: 'SpatialFrequencyResponse', type: 'UNDEFINED', count: 'any', level: 'O'},
228
+ {id: 0xa20e, ifd: 'exif', name: 'FocalPlaneXResolution', type: 'RATIONAL', count: 1, level: 'O'},
229
+ {id: 0xa20f, ifd: 'exif', name: 'FocalPlaneYResolution', type: 'RATIONAL', count: 1, level: 'O'},
230
+ {id: 0xa210, ifd: 'exif', name: 'FocalPlaneResolutionUnit', type: 'SHORT', count: 1, level: 'O'},
231
+ {id: 0xa214, ifd: 'exif', name: 'SubjectLocation', type: 'SHORT', count: 2, level: 'O'},
232
+ {id: 0xa215, ifd: 'exif', name: 'ExposureIndex', type: 'RATIONAL', count: 1, level: 'O'},
233
+ {id: 0xa217, ifd: 'exif', name: 'SensingMethod', type: 'SHORT', count: 1, level: 'O'},
234
+ {id: 0xa300, ifd: 'exif', name: 'FileSource', type: 'UNDEFINED', count: 1, level: 'O'},
235
+ {id: 0xa301, ifd: 'exif', name: 'SceneType', type: 'UNDEFINED', count: 1, level: 'O'},
236
+ {id: 0xa302, ifd: 'exif', name: 'CFAPattern', type: 'UNDEFINED', count: 'any', level: 'O'},
237
+ {id: 0xa401, ifd: 'exif', name: 'CustomRendered', type: 'SHORT', count: 1, level: 'O'},
238
+ {id: 0xa402, ifd: 'exif', name: 'ExposureMode', type: 'SHORT', count: 1, level: 'R'},
239
+ {id: 0xa403, ifd: 'exif', name: 'WhiteBalance', type: 'SHORT', count: 1, level: 'R'},
240
+ {id: 0xa404, ifd: 'exif', name: 'DigitalZoomRatio', type: 'RATIONAL', count: 1, level: 'O'},
241
+ {id: 0xa405, ifd: 'exif', name: 'FocalLengthIn35mmFilm', type: 'SHORT', count: 1, level: 'O'},
242
+ {id: 0xa406, ifd: 'exif', name: 'SceneCaptureType', type: 'SHORT', count: 1, level: 'R'},
243
+ {id: 0xa407, ifd: 'exif', name: 'GainControl', type: 'SHORT', count: 1, level: 'O'}, // Table 8 says RATIONAL, the definition SHORT
244
+ {id: 0xa408, ifd: 'exif', name: 'Contrast', type: 'SHORT', count: 1, level: 'O'},
245
+ {id: 0xa409, ifd: 'exif', name: 'Saturation', type: 'SHORT', count: 1, level: 'O'},
246
+ {id: 0xa40a, ifd: 'exif', name: 'Sharpness', type: 'SHORT', count: 1, level: 'O'},
247
+ {id: 0xa40b, ifd: 'exif', name: 'DeviceSettingDescription', type: 'UNDEFINED', count: 'any', level: 'O'},
248
+ {id: 0xa40c, ifd: 'exif', name: 'SubjectDistanceRange', type: 'SHORT', count: 1, level: 'O'},
249
+ {id: 0xa420, ifd: 'exif', name: 'ImageUniqueID', type: 'ASCII', count: 33, level: 'O'},
250
+ {id: 0xa430, ifd: 'exif', name: 'CameraOwnerName', type: 'ASCII', count: 'any', level: 'O'},
251
+ {id: 0xa431, ifd: 'exif', name: 'BodySerialNumber', type: 'ASCII', count: 'any', level: 'O'},
252
+ {id: 0xa432, ifd: 'exif', name: 'LensSpecification', type: 'RATIONAL', count: 4, level: 'O'},
253
+ {id: 0xa433, ifd: 'exif', name: 'LensMake', type: 'ASCII', count: 'any', level: 'O'},
254
+ {id: 0xa434, ifd: 'exif', name: 'LensModel', type: 'ASCII', count: 'any', level: 'O'},
255
+ {id: 0xa435, ifd: 'exif', name: 'LensSerialNumber', type: 'ASCII', count: 'any', level: 'O'},
256
+ {id: 0xa460, ifd: 'exif', name: 'CompositeImage', type: 'SHORT', count: 1, level: 'R'},
257
+ {id: 0xa461, ifd: 'exif', name: 'SourceImageNumberOfCompositeImage', type: 'SHORT', count: 2, level: 'O'},
258
+ {id: 0xa462, ifd: 'exif', name: 'SourceExposureTimesOfCompositeImage', type: 'UNDEFINED', count: 'any', level: 'O'},
259
+ {id: 0xa500, ifd: 'exif', name: 'Gamma', type: 'RATIONAL', count: 1, level: 'O'},
260
+ {id: 0xea1c, ifd: 'exif', name: 'Padding', level: 'O', writable: false}, // Microsoft
261
+ {id: 0xea1d, ifd: 'exif', name: 'OffsetSchema', level: 'O', writable: false}, // Microsoft
262
+ {id: 0xfde8, ifd: 'exif', name: 'OwnerName', level: 'O', writable: false}, // Adobe
263
+ {id: 0xfde9, ifd: 'exif', name: 'SerialNumber', level: 'O', writable: false}, // Adobe
264
+ {id: 0xfdea, ifd: 'exif', name: 'Lens', level: 'O', writable: false}, // Adobe
265
+ {id: 0xfe4c, ifd: 'exif', name: 'RawFile', level: 'O', writable: false}, // Adobe
266
+ {id: 0xfe4d, ifd: 'exif', name: 'Converter', level: 'O', writable: false}, // Adobe
267
+ {id: 0xfe4e, ifd: 'exif', name: 'WhiteBalance', level: 'O', writable: false}, // Adobe
268
+ {id: 0xfe51, ifd: 'exif', name: 'Exposure', level: 'O', writable: false}, // Adobe
269
+ {id: 0xfe52, ifd: 'exif', name: 'Shadows', level: 'O', writable: false}, // Adobe
270
+ {id: 0xfe53, ifd: 'exif', name: 'Brightness', level: 'O', writable: false}, // Adobe
271
+ {id: 0xfe54, ifd: 'exif', name: 'Contrast', level: 'O', writable: false}, // Adobe
272
+ {id: 0xfe55, ifd: 'exif', name: 'Saturation', level: 'O', writable: false}, // Adobe
273
+ {id: 0xfe56, ifd: 'exif', name: 'Sharpness', level: 'O', writable: false}, // Adobe
274
+ {id: 0xfe57, ifd: 'exif', name: 'Smoothness', level: 'O', writable: false}, // Adobe
275
+ {id: 0xfe58, ifd: 'exif', name: 'MoireFilter', level: 'O', writable: false}, // Adobe
276
+
277
+ {id: 0x0000, ifd: 'gps', name: 'GPSVersionID', type: 'BYTE', count: 4, level: 'M', default: [2, 3, 0, 0]}, // Table 19 says O; §4.6.6 makes it mandatory in a GPS IFD
278
+ {id: 0x0001, ifd: 'gps', name: 'GPSLatitudeRef', type: 'ASCII', count: 2, level: 'O'},
279
+ {id: 0x0002, ifd: 'gps', name: 'GPSLatitude', type: 'RATIONAL', count: 3, level: 'O'},
280
+ {id: 0x0003, ifd: 'gps', name: 'GPSLongitudeRef', type: 'ASCII', count: 2, level: 'O'},
281
+ {id: 0x0004, ifd: 'gps', name: 'GPSLongitude', type: 'RATIONAL', count: 3, level: 'O'},
282
+ {id: 0x0005, ifd: 'gps', name: 'GPSAltitudeRef', type: 'BYTE', count: 1, level: 'O'},
283
+ {id: 0x0006, ifd: 'gps', name: 'GPSAltitude', type: 'RATIONAL', count: 1, level: 'O'},
284
+ {id: 0x0007, ifd: 'gps', name: 'GPSTimeStamp', type: 'RATIONAL', count: 3, level: 'O'},
285
+ {id: 0x0008, ifd: 'gps', name: 'GPSSatellites', type: 'ASCII', count: 'any', level: 'O'},
286
+ {id: 0x0009, ifd: 'gps', name: 'GPSStatus', type: 'ASCII', count: 2, level: 'O'},
287
+ {id: 0x000a, ifd: 'gps', name: 'GPSMeasureMode', type: 'ASCII', count: 2, level: 'O'},
288
+ {id: 0x000b, ifd: 'gps', name: 'GPSDOP', type: 'RATIONAL', count: 1, level: 'O'},
289
+ {id: 0x000c, ifd: 'gps', name: 'GPSSpeedRef', type: 'ASCII', count: 2, level: 'O'},
290
+ {id: 0x000d, ifd: 'gps', name: 'GPSSpeed', type: 'RATIONAL', count: 1, level: 'O'},
291
+ {id: 0x000e, ifd: 'gps', name: 'GPSTrackRef', type: 'ASCII', count: 2, level: 'O'},
292
+ {id: 0x000f, ifd: 'gps', name: 'GPSTrack', type: 'RATIONAL', count: 1, level: 'O'},
293
+ {id: 0x0010, ifd: 'gps', name: 'GPSImgDirectionRef', type: 'ASCII', count: 2, level: 'O'},
294
+ {id: 0x0011, ifd: 'gps', name: 'GPSImgDirection', type: 'RATIONAL', count: 1, level: 'O'},
295
+ {id: 0x0012, ifd: 'gps', name: 'GPSMapDatum', type: 'ASCII', count: 'any', level: 'O'},
296
+ {id: 0x0013, ifd: 'gps', name: 'GPSDestLatitudeRef', type: 'ASCII', count: 2, level: 'O'},
297
+ {id: 0x0014, ifd: 'gps', name: 'GPSDestLatitude', type: 'RATIONAL', count: 3, level: 'O'},
298
+ {id: 0x0015, ifd: 'gps', name: 'GPSDestLongitudeRef', type: 'ASCII', count: 2, level: 'O'},
299
+ {id: 0x0016, ifd: 'gps', name: 'GPSDestLongitude', type: 'RATIONAL', count: 3, level: 'O'},
300
+ {id: 0x0017, ifd: 'gps', name: 'GPSDestBearingRef', type: 'ASCII', count: 2, level: 'O'},
301
+ {id: 0x0018, ifd: 'gps', name: 'GPSDestBearing', type: 'RATIONAL', count: 1, level: 'O'},
302
+ {id: 0x0019, ifd: 'gps', name: 'GPSDestDistanceRef', type: 'ASCII', count: 2, level: 'O'},
303
+ {id: 0x001a, ifd: 'gps', name: 'GPSDestDistance', type: 'RATIONAL', count: 1, level: 'O'},
304
+ {id: 0x001b, ifd: 'gps', name: 'GPSProcessingMethod', type: 'UNDEFINED', count: 'any', level: 'O'},
305
+ {id: 0x001c, ifd: 'gps', name: 'GPSAreaInformation', type: 'UNDEFINED', count: 'any', level: 'O'},
306
+ {id: 0x001d, ifd: 'gps', name: 'GPSDateStamp', type: 'ASCII', count: 11, level: 'O'},
307
+ {id: 0x001e, ifd: 'gps', name: 'GPSDifferential', type: 'SHORT', count: 1, level: 'O'},
308
+ {id: 0x001f, ifd: 'gps', name: 'GPSHPositioningError', type: 'RATIONAL', count: 1, level: 'O'},
309
+
310
+ {id: 0x0001, ifd: 'interoperability', name: 'InteroperabilityIndex', type: 'ASCII', count: 'any', level: 'O'},
311
+ {id: 0x0002, ifd: 'interoperability', name: 'InteroperabilityVersion', level: 'O', writable: false}, // Exif R98
312
+ {id: 0x1000, ifd: 'interoperability', name: 'RelatedImageFileFormat', level: 'O', writable: false}, // Exif R98
313
+ {id: 0x1001, ifd: 'interoperability', name: 'RelatedImageWidth', level: 'O', writable: false}, // Exif R98
314
+ {id: 0x1002, ifd: 'interoperability', name: 'RelatedImageHeight', level: 'O', writable: false} // Exif R98
315
+ ];
316
+
317
+ export default {
318
+ tags,
319
+ DEFAULT_FROM_SOF,
320
+ DEFAULT_COMPUTED
321
+ };