aboutsummaryrefslogtreecommitdiff
path: root/tiff-tables.db
blob: 8b0e20661d2862dd32418c2fa23b59d2a00b3b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
# Use tiff-tables.awk to produce a C source file from this database.

# Use the Internet Archive should any of these links go down.
#
# TIFF Revision 6.0 (1992)
# https://www.adobe.io/content/dam/udp/en/open/standards/tiff/TIFF6.pdf
#
# TIFF Technical Note 1: TIFF Trees (1993)
# https://download.osgeo.org/libtiff/old/TTN1.ps
#
# DRAFT TIFF Technical Note 2 (1995)
# https://www.awaresystems.be/imaging/tiff/specification/TIFFTechNote2.txt
#
# Adobe PageMaker 6.0 TIFF Technical Notes (1995) [includes TTN1]
# https://www.adobe.io/content/dam/udp/en/open/standards/tiff/TIFFPM6.pdf
#
# Adobe Photoshop TIFF Technical Notes (2002)
# https://www.adobe.io/content/dam/udp/en/open/standards/tiff/TIFFphotoshop.pdf
# https://www.alternatiff.com/resources/TIFFphotoshop.pdf
#  - Note that ImageSourceData 8BIM frames are specified differently
#    from how Adobe XMP Specification Part 3 defines them.
#  - The document places a condition on SubIFDs, without further explanation.
#
# Adobe Photoshop TIFF Technical Note 3 (2005)
# http://chriscox.org/TIFFTN3d1.pdf
#
# Exif Version 2.3 (2012)
# https://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf
#
# Exif Version 2.32 (2019)
# https://www.cipa.jp/e/std/std-sec.html
#
# Digital Negative (DNG) Specification 1.5.0.0 (2019)
# https://www.adobe.com/content/dam/acom/en/products/photoshop/pdfs/dng_spec_1.5.0.0.pdf

# TIFF 6.0
= TIFF
254, NewSubfileType
255, SubfileType
	1, Full-resolution image data
	2, Reduced-resolution image data
	3, Page of a multi-page image
256, ImageWidth
257, ImageLength
258, BitsPerSample
259, Compression
	1, Uncompressed
	2, CCITT 1D
	3, Group 3 Fax
	4, Group 4 Fax
	5, LZW
	6, JPEG
	7, JPEG datastream  # DRAFT TIFF Technical Note 2 + TIFFphotoshop.pdf
	8, Deflate/zlib  # Adobe Photoshop TIFF Technical Notes
	32773, PackBits
	32946, Deflate  # Adobe Photoshop TIFF Technical Notes
262, PhotometricInterpretation
	0, WhiteIsZero
	1, BlackIsZero
	2, RGB
	3, RGB Palette
	4, Transparency mask
	5, CMYK
	6, YCbCr
	8, CIELab
	9, ICCLab  # Adobe PageMaker 6.0 TIFF Technical Notes
263, Threshholding
	1, No dithering or halftoning
	2, Ordered dither or halftoning
	3, Randomized process
264, CellWidth
265, CellLength
266, FillOrder
	1, MSB-first
	2, LSB-first
269, DocumentName
270, ImageDescription
271, Make
272, Model
273, StripOffsets
274, Orientation
	1, TopLeft
	2, TopRight
	3, BottomRight
	4, BottomLeft
	5, LeftTop
	6, RightTop
	7, RightBottom
	8, LeftBottom
277, SamplesPerPixel
278, RowsPerStrip
279, StripByteCounts
280, MinSampleValue
281, MaxSampleValue
282, XResolution
283, YResolution
284, PlanarConfiguration
	1, Chunky
	2, Planar
285, PageName
286, XPosition
287, YPosition
288, FreeOffsets
289, FreeByteCounts
290, GrayResponseUnit
	1, 1/10
	2, 1/100
	3, 1/1000
	4, 1/10000
	5, 1/100000
291, GrayResponseCurve
292, T4Options
293, T6Options
296, ResolutionUnit
	1, None
	2, Inch
	3, Centimeter
297, PageNumber
301, TransferFunction
305, Software
306, DateTime
315, Artist
316, HostComputer
317, Predictor
	1, None
	2, Horizontal
	3, Floating point  # Adobe Photoshop TIFF Technical Note 3
318, WhitePoint
319, PrimaryChromaticities
320, ColorMap
321, HalftoneHints
322, TileWidth
323, TileLength
324, TileOffsets
325, TileByteCounts
330, SubIFDs  # TIFF Technical Note 1: TIFF Trees
332, InkSet
	1, CMYK
	2, Non-CMYK
333, InkNames
334, NumberOfInks
336, DotRange
337, TargetPrinter
338, ExtraSamples
	0, Unspecified
	1, Associated alpha
	2, Unassociated alpha
339, SampleFormat
	1, Unsigned integer
	2, Two's complement signed integer
	3, IEEE floating-point
	4, Undefined
340, SMinSampleValue
341, SMaxSampleValue
342, TransferRange
343, ClipPath  # TIFF Technical Note 2: Clipping Path
344, XClipPathUnits  # TIFF Technical Note 2: Clipping Path
345, YClipPathUnits  # TIFF Technical Note 2: Clipping Path
346, Indexed  # TIFF Technical Note 3: Indexed Images
347, JPEGTables  # DRAFT TIFF Technical Note 2 + TIFFphotoshop.pdf
351, OPIProxy  # Adobe PageMaker 6.0 TIFF Technical Notes
512, JPEGProc
	1, Baseline sequential
	14, Lossless Huffman
513, JPEGInterchangeFormat
514, JPEGInterchangeFormatLength
515, JPEGRestartInterval
517, JPEGLosslessPredictors
	1, A
	2, B
	3, C
	4, A+B+C
	5, A+((B-C)/2)
	6, B+((A-C)/2)
	7, (A+B)/2
518, JPEGPointTransforms
519, JPEGQTables
520, JPEGDCTables
521, JPEGACTables
529, YCbCrCoefficients
530, YCbCrSubSampling
531, YCbCrPositioning
	1, Centered
	2, Co-sited
532, ReferenceBlackWhite
700, XMP  # Adobe XMP Specification Part 3 Table 12/13/39
32781, ImageID  # Adobe PageMaker 6.0 TIFF Technical Notes
33432, Copyright
# TODO(p): Extract IPTC DataSets, like we do directly with PSIRs.
33723, IPTC  # Adobe XMP Specification Part 3 Table 12/39
# TODO(p): Extract PSIRs, like we do directly with the JPEG segment.
34377, Photoshop  # Adobe XMP Specification Part 3 Table 12/39
34665, Exif IFD Pointer  # Exif 2.3
34853, GPS Info IFD Pointer  # Exif 2.3
37398, TIFF/EP StandardID  # ISO 12234 TIFF/EP image data format
37724, ImageSourceData  # Adobe Photoshop TIFF Technical Notes
50706, DNGVersion  # DNG 1.5.0.0
50707, DNGBackwardVersion  # DNG 1.5.0.0
50708, UniqueCameraModel  # DNG 1.5.0.0
50709, LocalizedCameraModel  # DNG 1.5.0.0
# TODO(p): Add more DNG tags that can be only in IFD0.

# Exif 2.3 4.6.5
= Exif
33434, ExposureTime
33437, FNumber
34850, ExposureProgram
	0, Not defined
	1, Manual
	2, Normal program
	3, Aperture priority
	4, Shutter priority
	5, Creative program
	6, Action program
	7, Portrait mode
	8, Landscape mode
34852, SpectralSensitivity
34855, PhotographicSensitivity
34856, OECF
34864, SensitivityType
	0, Unknown
	1, Standard output sensitivity
	2, Recommended exposure index
	3, ISO speed
	4, SOS and REI
	5, SOS and ISO speed
	6, REI and ISO speed
	7, SOS and REI and ISO speed
34865, StandardOutputSensitivity
34866, RecommendedExposureIndex
34867, ISOSpeed
34868, ISOSpeedLatitudeyyy
34869, ISOSpeedLatitudezzz
36864, ExifVersion
36867, DateTimeOriginal
36868, DateTimeDigitized
36880, OffsetTime  # 2.31
36881, OffsetTimeOriginal  # 2.31
36882, OffsetTimeDigitized  # 2.31
37121, ComponentsConfiguration
	0, Does not exist
	1, Y
	2, Cb
	3, Cr
	4, R
	5, G
	6, B
37122, CompressedBitsPerPixel
37377, ShutterSpeedValue
37378, ApertureValue
37379, BrightnessValue
37380, ExposureBiasValue
37381, MaxApertureValue
37382, SubjectDistance
37383, MeteringMode
	0, Unknown
	1, Average
	2, CenterWeightedAverage
	3, Spot
	4, MultiSpot
	5, Pattern
	6, Partial
	255, Other
37384, LightSource
	0, Unknown
	1, Daylight
	2, Fluorescent
	3, Tungsten (incandescent light)
	4, Flash
	9, Fine weather
	10, Cloudy weather
	11, Shade
	12, Daylight fluorescent (D 5700 - 7100K)
	13, Day white fluorescent (N 4600 - 5500K)
	14, Cool white fluorescent (W 3800 - 4500K)
	15, White fluorescent (WW 3250 - 3800K)
	16, Warm white fluorescent (L 2600 - 3250K)
	17, Standard light A
	18, Standard light B
	19, Standard light C
	20, D55
	21, D65
	22, D75
	23, D50
	24, ISO studio tungsten
	255, Other light source
37385, Flash
37386, FocalLength
37396, SubjectArea
37500, MakerNote
# TODO(p): Decode.
37510, UserComment
37520, SubSecTime
37521, SubSecTimeOriginal
37522, SubSecTimeDigitized
37888, Temperature  # 2.31
37889, Humidity  # 2.31
37890, Pressure  # 2.31
37891, WaterDepth  # 2.31
37892, Acceleration  # 2.31
37893, CameraElevationAngle  # 2.31
40960, FlashpixVersion
40961, ColorSpace
	1, sRGB
	65535, Uncalibrated
40962, PixelXDimension
40963, PixelYDimension
40964, RelatedSoundFile
40965, Interoperability IFD Pointer
41483, FlashEnergy
41484, SpatialFrequencyResponse
41486, FocalPlaneXResolution
41487, FocalPlaneYResolution
41488, FocalPlaneResolutionUnit
41492, SubjectLocation
41493, ExposureIndex
41495, SensingMethod
	1, Not defined
	2, One-chip color area sensor
	3, Two-chip color area sensor
	4, Three-chip color area sensor
	5, Color sequential area sensor
	7, Trilinear sensor
	8, Color sequential linear sensor
41728, FileSource
	0, Others
	1, Scanner of transparent type
	2, Scanner of reflex type
	3, DSC
41729, SceneType
	1, Directly-photographed image
41730, CFAPattern
41985, CustomRendered
	0, Normal process
	1, Custom process
41986, ExposureMode
	0, Auto exposure
	1, Manual exposure
	2, Auto bracket
41987, WhiteBalance
	0, Auto white balance
	1, Manual white balance
41988, DigitalZoomRatio
41989, FocalLengthIn35mmFilm
41990, SceneCaptureType
	0, Standard
	1, Landscape
	2, Portrait
	3, Night scene
41991, GainControl
	0, None
	1, Low gain up
	2, High gain up
	3, Low gain down
	4, High gain down
41992, Contrast
	0, Normal
	1, Soft
	2, Hard
41993, Saturation
	0, Normal
	1, Low
	2, High
41994, Sharpness
	0, Normal
	1, Soft
	2, Hard
41995, DeviceSettingDescription
41996, SubjectDistanceRange
	0, Unknown
	1, Macro
	2, Close view
	3, Distant view
42016, ImageUniqueID
42032, CameraOwnerName
42033, BodySerialNumber
42034, LensSpecification
42035, LensMake
42036, LensModel
42037, LensSerialNumber
42080, CompositeImage  # 2.32
42081, SourceImageNumberOfCompositeImage  # 2.32
42082, SourceExposureTimesOfCompositeImage  # 2.32
42240, Gamma

# Exif 2.3 4.6.6 (Notice it starts at 0.)
= Exif GPS
0, GPSVersionID
1, GPSLatitudeRef
2, GPSLatitude
3, GPSLongitudeRef
4, GPSLongitude
5, GPSAltitudeRef
	0, Sea level
	1, Sea level reference (negative value)
6, GPSAltitude
7, GPSTimeStamp
8, GPSSatellites
9, GPSStatus
10, GPSMeasureMode
11, GPSDOP
12, GPSSpeedRef
13, GPSSpeed
14, GPSTrackRef
15, GPSTrack
16, GPSImgDirectionRef
17, GPSImgDirection
18, GPSMapDatum
19, GPSDestLatitudeRef
20, GPSDestLatitude
21, GPSDestLongitudeRef
22, GPSDestLongitude
23, GPSDestBearingRef
24, GPSDestBearing
25, GPSDestDistanceRef
26, GPSDestDistance
27, GPSProcessingMethod
28, GPSAreaInformation
29, GPSDateStamp
30, GPSDifferential
	0, Measurement without differential correction
	1, Differential correction applied
31, GPSHPositioningError

# Exif 2.3 4.6.7 (Notice it starts at 1, and collides with GPS.)
= Exif Interoperability
1, InteroperabilityIndex