exifreader 4.53.0 → 4.55.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.
- package/README.md +404 -33
- package/bin/analyze.js +139 -9
- package/bin/build-pages.js +21 -35
- package/bin/cli.js +81 -13
- package/bin/generate-tag-modules.js +287 -0
- package/dist/exif-reader.js +1 -1
- package/dist/exif-reader.js.map +1 -1
- package/exif-reader.d.ts +213 -38
- package/package.json +71 -11
- package/src/base64-image.js +27 -0
- package/src/composable/brand.js +10 -0
- package/src/composable/composition-tag-filter.js +97 -0
- package/src/composable/composition.js +195 -0
- package/src/composable/core.d.ts +148 -0
- package/src/composable/core.js +526 -0
- package/src/composable/exif-block-reader.js +197 -0
- package/src/composable/formats/avif.js +19 -0
- package/src/composable/formats/gif.js +28 -0
- package/src/composable/formats/heic.js +19 -0
- package/src/composable/formats/iso-bmff-file-reader.js +14 -0
- package/src/composable/formats/jpeg.js +55 -0
- package/src/composable/formats/jxl.js +30 -0
- package/src/composable/formats/png.js +187 -0
- package/src/composable/formats/tiff.js +18 -0
- package/src/composable/formats/webp.js +28 -0
- package/src/composable/formats/xml.js +18 -0
- package/src/composable/formats.d.ts +17 -0
- package/src/composable/formats.js +17 -0
- package/src/composable/group-helpers.js +129 -0
- package/src/composable/groups/canon.js +26 -0
- package/src/composable/groups/composite.js +43 -0
- package/src/composable/groups/exif.js +48 -0
- package/src/composable/groups/gps.js +75 -0
- package/src/composable/groups/icc.js +52 -0
- package/src/composable/groups/iptc.js +86 -0
- package/src/composable/groups/maker-notes.js +21 -0
- package/src/composable/groups/mpf.js +25 -0
- package/src/composable/groups/pentax.js +34 -0
- package/src/composable/groups/photoshop.js +18 -0
- package/src/composable/groups/thumbnail.js +131 -0
- package/src/composable/groups/xmp.js +118 -0
- package/src/composable/groups.d.ts +20 -0
- package/src/composable/groups.js +105 -0
- package/src/composable/iptc-block-reader.js +44 -0
- package/src/composable/read-view.js +165 -0
- package/src/composable/tag-binding-name.js +17 -0
- package/src/composable/tags/exif.d.ts +295 -0
- package/src/composable/tags/exif.js +396 -0
- package/src/composable/tags/iptc.d.ts +84 -0
- package/src/composable/tags/iptc.js +109 -0
- package/src/composable/value-budget.js +24 -0
- package/src/composite.js +2 -2
- package/src/decompression.js +60 -0
- package/src/dom-parser.js +5 -6
- package/src/engine.js +332 -0
- package/src/errors.js +8 -2
- package/src/exif-reader.d.ts +8 -0
- package/src/exif-reader.js +118 -1121
- package/src/file-loaders.js +74 -1
- package/src/file-tags.js +9 -9
- package/src/image-header-avif.js +7 -8
- package/src/image-header-gif.js +9 -10
- package/src/image-header-heic.js +7 -8
- package/src/image-header-iso-bmff.js +71 -92
- package/src/image-header-jpeg.js +60 -59
- package/src/image-header-jxl.js +59 -65
- package/src/image-header-png.js +199 -76
- package/src/image-header-tiff.js +7 -4
- package/src/image-header-webp.js +29 -35
- package/src/image-header.js +25 -59
- package/src/iptc-tag-names-descriptions.js +334 -0
- package/src/iptc-tag-names.js +50 -306
- package/src/iptc-tags.js +41 -27
- package/src/jfif-tags.js +9 -9
- package/src/load-auto.js +2 -2
- package/src/loadview-pipeline.js +197 -498
- package/src/mpf-tags.js +10 -7
- package/src/node-require.js +15 -2
- package/src/png-text-tags.js +90 -327
- package/src/tag-filter-config.js +24 -15
- package/src/tag-filter.js +67 -3
- package/src/tag-names-0th-ifd-descriptions.js +232 -0
- package/src/tag-names-0th-ifd.js +49 -173
- package/src/tag-names-common.js +263 -211
- package/src/tag-names-exif-ifd-descriptions.js +249 -0
- package/src/tag-names-exif-ifd.js +55 -187
- package/src/tag-names-gps-ifd-descriptions.js +156 -0
- package/src/tag-names-gps-ifd.js +39 -146
- package/src/tag-names-utils.js +33 -10
- package/src/tags-helpers.js +14 -24
- package/src/tags.js +23 -11
- package/src/thumbnail.js +7 -5
- package/src/types.js +2 -0
- package/src/unsupported-format-error.js +21 -0
- package/src/utils.js +64 -119
- package/src/writer/exif-tag-table.js +321 -0
- package/src/xml.js +12 -15
- package/src/xmp-tag-names.js +42 -21
- package/src/xmp-tags.js +9 -10
- package/webpack.config.js +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Thrown when no supported image format recognizes the input.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} message The error message.
|
|
9
|
+
*/
|
|
10
|
+
function UnsupportedFormatError(message) {
|
|
11
|
+
this.name = 'UnsupportedFormatError';
|
|
12
|
+
this.message = message;
|
|
13
|
+
// Defined, not assigned, to keep stack out of the enumerable keys.
|
|
14
|
+
Object.defineProperty(this, 'stack', {value: (new Error(message)).stack, writable: true, configurable: true});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
UnsupportedFormatError.prototype = Object.create(Error.prototype, {
|
|
18
|
+
constructor: {value: UnsupportedFormatError, writable: true, configurable: true}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export {UnsupportedFormatError};
|
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
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* @param {
|
|
287
|
-
* @
|
|
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
|
|
292
|
-
if (!
|
|
304
|
+
export function pushRange(ranges, block, start, end) {
|
|
305
|
+
if (!ranges || !block) {
|
|
293
306
|
return;
|
|
294
307
|
}
|
|
295
|
-
if (
|
|
296
|
-
|
|
308
|
+
if (ranges.length < MAX_METADATA_BLOCKS) {
|
|
309
|
+
ranges.push({block, start, end});
|
|
297
310
|
} else {
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
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,101 +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
|
-
export function dataUriToBuffer(dataUri) {
|
|
396
|
-
const commaIndex = dataUri.indexOf(',');
|
|
397
|
-
const header = dataUri.substring(0, commaIndex);
|
|
398
|
-
const data = dataUri.substring(commaIndex + 1);
|
|
399
|
-
|
|
400
|
-
if (header.indexOf(';base64') !== -1) {
|
|
401
|
-
const base64 = percentDecodeBase64Payload(data);
|
|
402
|
-
if (typeof atob !== 'undefined') {
|
|
403
|
-
return binaryStringToArrayBuffer(atob(base64));
|
|
404
|
-
}
|
|
405
|
-
if (typeof Buffer === 'undefined') {
|
|
406
|
-
return undefined;
|
|
407
|
-
}
|
|
408
|
-
if (typeof Buffer.from !== 'undefined') { // eslint-disable-line no-undef
|
|
409
|
-
return Buffer.from(base64, 'base64'); // eslint-disable-line no-undef
|
|
410
|
-
}
|
|
411
|
-
return new Buffer(base64, 'base64'); // eslint-disable-line no-undef
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
return percentDecodeToBytes(data).buffer;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
// WHATWG data: URL processing percent-decodes the body before the forgiving-base64 decode.
|
|
418
|
-
// A non-ASCII payload can never be valid base64, so it goes to the decoder unchanged.
|
|
419
|
-
function percentDecodeBase64Payload(data) {
|
|
420
|
-
if (data.indexOf('%') === -1 || /[\u0080-\uffff]/.test(data)) {
|
|
421
|
-
return data;
|
|
422
|
-
}
|
|
423
|
-
return getByteString(percentDecodeToBytes(data));
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
function binaryStringToArrayBuffer(string) {
|
|
427
|
-
const bytes = new Uint8Array(string.length);
|
|
428
|
-
for (let i = 0; i < string.length; i++) {
|
|
429
|
-
bytes[i] = string.charCodeAt(i);
|
|
430
|
-
}
|
|
431
|
-
return bytes.buffer;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
// WHATWG URL "string percent-decode" (used for data: URLs, RFC 2397): UTF-8 encode, then each %XX is one byte.
|
|
435
|
-
function percentDecodeToBytes(string) {
|
|
436
|
-
const byteString = /[\u0080-\uffff]/.test(string) ? unescape(encodeURIComponent(string)) : string;
|
|
437
|
-
const bytes = new Uint8Array(byteString.length - 2 * countPercentEscapes(byteString));
|
|
438
|
-
let byteIndex = 0;
|
|
439
|
-
for (let i = 0; i < byteString.length; i++) {
|
|
440
|
-
if (isPercentEscape(byteString, i)) {
|
|
441
|
-
bytes[byteIndex++] = getHexDigitValue(byteString.charCodeAt(i + 1)) * 16 + getHexDigitValue(byteString.charCodeAt(i + 2));
|
|
442
|
-
i += 2;
|
|
443
|
-
} else {
|
|
444
|
-
bytes[byteIndex++] = byteString.charCodeAt(i);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
return bytes;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
function countPercentEscapes(byteString) {
|
|
451
|
-
let count = 0;
|
|
452
|
-
for (let i = 0; i < byteString.length; i++) {
|
|
453
|
-
if (isPercentEscape(byteString, i)) {
|
|
454
|
-
count++;
|
|
455
|
-
i += 2;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
return count;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
function isPercentEscape(byteString, index) {
|
|
462
|
-
return byteString.charCodeAt(index) === 0x25
|
|
463
|
-
&& index + 2 < byteString.length
|
|
464
|
-
&& getHexDigitValue(byteString.charCodeAt(index + 1)) !== -1
|
|
465
|
-
&& getHexDigitValue(byteString.charCodeAt(index + 2)) !== -1;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
386
|
/**
|
|
469
387
|
* @param {number} charCode
|
|
470
388
|
* @returns {number} The value of the hex digit, or -1 for any other character.
|
|
@@ -511,19 +429,38 @@ const MAX_CUSTOM_OUTPUT_LENGTH = (1024 * 1024 * 1024) - 1;
|
|
|
511
429
|
* @returns {Object} {brotli, deflate, maxDecompressedSize, budget: {remaining, warned, failed, pending}}
|
|
512
430
|
*/
|
|
513
431
|
export function withDecompressBudget(decompressConfig) {
|
|
514
|
-
|
|
432
|
+
const config = {
|
|
515
433
|
brotli: decompressConfig ? decompressConfig.brotli : undefined,
|
|
516
434
|
deflate: decompressConfig ? decompressConfig.deflate : undefined,
|
|
517
|
-
maxDecompressedSize: decompressConfig ? decompressConfig.maxDecompressedSize : undefined
|
|
518
|
-
budget: {remaining: getMaxDecompressedSize(decompressConfig), warned: false, failed: false, pending: undefined}
|
|
435
|
+
maxDecompressedSize: decompressConfig ? decompressConfig.maxDecompressedSize : undefined
|
|
519
436
|
};
|
|
437
|
+
// From the copy, so a getter cannot make the enforced limit differ from the one decompress names.
|
|
438
|
+
config.budget = {remaining: getMaxDecompressedSize(config), warned: false, failed: false, pending: undefined};
|
|
439
|
+
return config;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Maps a block's `compression` to the method `decompress` takes. Anything but
|
|
444
|
+
* 'deflate' and 'brotli' is passed through unchanged, so `decompress` rejects
|
|
445
|
+
* it as an unknown method and never selects a custom function for it.
|
|
446
|
+
* @param {string} compression
|
|
447
|
+
* @returns {number|string}
|
|
448
|
+
*/
|
|
449
|
+
export function getCompressionMethod(compression) {
|
|
450
|
+
if (compression === 'deflate') {
|
|
451
|
+
return COMPRESSION_METHOD_DEFLATE;
|
|
452
|
+
}
|
|
453
|
+
if (compression === 'brotli') {
|
|
454
|
+
return COMPRESSION_METHOD_BROTLI;
|
|
455
|
+
}
|
|
456
|
+
return compression;
|
|
520
457
|
}
|
|
521
458
|
|
|
522
459
|
export function decompress(dataView, compressionMethod, encoding, returnType = 'string', decompressConfig) {
|
|
523
460
|
const maxDecompressedSize = getMaxDecompressedSize(decompressConfig);
|
|
524
461
|
const budget = getDecompressBudget(decompressConfig, maxDecompressedSize);
|
|
525
462
|
|
|
526
|
-
if (compressionMethod !== COMPRESSION_METHOD_NONE && budget
|
|
463
|
+
if (compressionMethod !== COMPRESSION_METHOD_NONE && isBudgetExhausted(budget)) {
|
|
527
464
|
return rejectExceedsMax(budget, maxDecompressedSize);
|
|
528
465
|
}
|
|
529
466
|
|
|
@@ -581,8 +518,9 @@ function getDecompressType(compressionMethod) {
|
|
|
581
518
|
}
|
|
582
519
|
|
|
583
520
|
function getMaxDecompressedSize(decompressConfig) {
|
|
584
|
-
|
|
585
|
-
|
|
521
|
+
const maxDecompressedSize = decompressConfig ? decompressConfig.maxDecompressedSize : undefined;
|
|
522
|
+
if (typeof maxDecompressedSize === 'number' && !isNaN(maxDecompressedSize)) {
|
|
523
|
+
return maxDecompressedSize;
|
|
586
524
|
}
|
|
587
525
|
return DEFAULT_MAX_DECOMPRESSED_SIZE;
|
|
588
526
|
}
|
|
@@ -594,6 +532,11 @@ function getDecompressBudget(decompressConfig, maxDecompressedSize) {
|
|
|
594
532
|
return {remaining: maxDecompressedSize, warned: false, failed: false, pending: undefined};
|
|
595
533
|
}
|
|
596
534
|
|
|
535
|
+
// Also true for a NaN budget, so no bad charge can lift the limit.
|
|
536
|
+
function isBudgetExhausted(budget) {
|
|
537
|
+
return !(budget.remaining >= 0);
|
|
538
|
+
}
|
|
539
|
+
|
|
597
540
|
function decompressWithCustomFunctionInTurn(customFn, dataView, returnType, encoding, budget, maxDecompressedSize) {
|
|
598
541
|
// The executor runs now, so a synchronous result is charged before this returns and a throw becomes a rejection.
|
|
599
542
|
return new Promise((resolve) => {
|
|
@@ -610,7 +553,7 @@ function queueCustomFunctionCall(customFn, dataView, returnType, encoding, budge
|
|
|
610
553
|
// Copy now: the input can view the caller's buffer, which may be reused once load() returns.
|
|
611
554
|
const inputCopy = new DataView(dataView.buffer.slice(dataView.byteOffset, dataView.byteOffset + dataView.byteLength));
|
|
612
555
|
return holdTurn(budget, previousCall.then(() => {
|
|
613
|
-
if (budget
|
|
556
|
+
if (isBudgetExhausted(budget)) {
|
|
614
557
|
return rejectExceedsMax(budget, maxDecompressedSize);
|
|
615
558
|
}
|
|
616
559
|
return decompressWithCustomFunction(customFn, inputCopy, returnType, encoding, budget, maxDecompressedSize);
|
|
@@ -675,7 +618,7 @@ export function isThenable(value) {
|
|
|
675
618
|
|
|
676
619
|
function chargeCustomResult(result, returnType, encoding, budget, maxDecompressedSize) {
|
|
677
620
|
budget.remaining -= getResultByteLength(result);
|
|
678
|
-
if (budget
|
|
621
|
+
if (isBudgetExhausted(budget)) {
|
|
679
622
|
return rejectExceedsMax(budget, maxDecompressedSize);
|
|
680
623
|
}
|
|
681
624
|
return convertCustomResult(result, returnType, encoding);
|
|
@@ -719,7 +662,7 @@ function readBoundedDecompressedStream(dataView, format, budget, maxDecompressed
|
|
|
719
662
|
// Charge before checking and never give bytes back, so an
|
|
720
663
|
// exceeded budget stays exhausted for every later block.
|
|
721
664
|
budget.remaining -= value.byteLength;
|
|
722
|
-
if (budget
|
|
665
|
+
if (isBudgetExhausted(budget)) {
|
|
723
666
|
return reader.cancel().then(() => rejectExceedsMax(budget, maxDecompressedSize));
|
|
724
667
|
}
|
|
725
668
|
chunks.push(value);
|
|
@@ -746,10 +689,12 @@ function decodeBuffer(arrayBuffer, returnType, encoding) {
|
|
|
746
689
|
}
|
|
747
690
|
|
|
748
691
|
function getResultByteLength(result) {
|
|
749
|
-
|
|
750
|
-
|
|
692
|
+
const byteLength = result ? result.byteLength : undefined;
|
|
693
|
+
if (typeof byteLength !== 'number') {
|
|
694
|
+
return 0;
|
|
751
695
|
}
|
|
752
|
-
|
|
696
|
+
// A NaN or negative length would give bytes back, so it uses up the budget instead.
|
|
697
|
+
return byteLength >= 0 ? byteLength : Infinity;
|
|
753
698
|
}
|
|
754
699
|
|
|
755
700
|
function rejectExceedsMax(budget, 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
|
+
};
|