forked from MikeKovarik/exifr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiptc-values.mjs
92 lines (82 loc) · 2.8 KB
/
iptc-values.mjs
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
import {tagValues, createDictionary} from '../tags.mjs'
// Taken from
// https://exiftool.org/TagNames/IPTC.html
createDictionary(tagValues, 'iptc', [
[10, {
0: '0 (reserved)',
1: '1 (most urgent)',
2: '2',
3: '3',
4: '4',
5: '5 (normal urgency)',
6: '6',
7: '7',
8: '8 (least urgent)',
9: '9 (user-defined priority)',
}],
// TODO 42
[75, {
'a': 'Morning',
'b': 'Both Morning and Evening',
'p': 'Evening',
}],
[131, {
'L': 'Landscape',
'P': 'Portrait',
'S': 'Square',
}],
// not useful in images
/*
[150, {
'0T': 'Text Only',
'1A': 'Mono Actuality',
'1C': 'Mono Question and Answer Session',
'1M': 'Mono Music',
'1Q': 'Mono Response to a Question',
'1R': 'Mono Raw Sound',
'1S': 'Mono Scener',
'1V': 'Mono Voicer',
'1W': 'Mono Wrap',
'2A': 'Stereo Actuality',
'2C': 'Stereo Question and Answer Session',
'2M': 'Stereo Music',
'2Q': 'Stereo Response to a Question',
'2R': 'Stereo Raw Sound',
'2S': 'Stereo Scener',
'2V': 'Stereo Voicer',
'2W': 'Stereo Wrap',
}],
[200, {
0: 'No ObjectData',
1: 'IPTC-NAA Digital Newsphoto Parameter Record',
2: 'IPTC7901 Recommended Message Format',
3: 'Tagged Image File Format (Adobe/Aldus Image data)',
4: 'Illustrator (Adobe Graphics data)',
5: 'AppleSingle (Apple Computer Inc)',
6: 'NAA 89-3 (ANPA 1312)',
7: 'MacBinary II',
8: 'IPTC Unstructured Character Oriented File Format (UCOFF)',
9: 'United Press International ANPA 1312 variant',
10: 'United Press International Down-Load Message',
11: 'JPEG File Interchange (JFIF)',
12: 'Photo-CD Image-Pac (Eastman Kodak)',
13: 'Bit Mapped Graphics File [.BMP] (Microsoft)',
14: 'Digital Audio File [.WAV] (Microsoft & Creative Labs)',
15: 'Audio plus Moving Video [.AVI] (Microsoft)',
16: 'PC DOS/Windows Executable Files [.COM][.EXE]',
17: 'Compressed Binary File [.ZIP] (PKWare Inc)',
18: 'Audio Interchange File Format AIFF (Apple Computer Inc)',
19: 'RIFF Wave (Microsoft Corporation)',
20: 'Freehand (Macromedia/Aldus)',
21: 'Hypertext Markup Language [.HTML] (The Internet Society)',
22: 'MPEG 2 Audio Layer 2 (Musicom), ISO/IEC',
23: 'MPEG 2 Audio Layer 3, ISO/IEC',
24: 'Portable Document File [.PDF] Adobe',
25: 'News Industry Text Format (NITF)',
26: 'Tape Archive [.TAR]',
27: 'Tidningarnas Telegrambyra NITF version (TTNITF DTD)',
28: 'Ritzaus Bureau NITF version (RBNITF DTD)',
29: 'Corel Draw [.CDR]',
}],
*/
])