Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/specification/coverage.rst

raw
1 LibTIFF Coverage of the TIFF 6.0 Specification
2 ==============================================
3
4 The library is capable of dealing with images that are written to
5 follow the 5.0 or 6.0 TIFF spec. There is also considerable support
6 for some of the more esoteric portions of the 6.0 TIFF spec.
7
8 Baseline
9 --------
10
11 .. list-table:: Core requirements
12 :widths: 5 20
13 :header-rows: 0
14
15 * - Core requirements
16 - Both ``MM`` and ``II`` byte orders are handled.
17 Both packed and separated planar configuration of samples.
18 Any number of samples per pixel (memory permitting).
19 Any image width and height (memory permitting).
20 Multiple subfiles can be read and written.
21 Editing is **not** supported in that related subfiles (e.g.
22 a reduced resolution version of an image) are not automatically
23 updated.
24
25 Tags handled: ``ExtraSamples``, ``ImageWidth``,
26 ``ImageLength``, ``NewSubfileType``, ``ResolutionUnit``.
27 ``Rowsperstrip``, ``StripOffsets``, ``StripByteCounts``,
28 ``XResolution``, ``YResolution``
29
30 * - Tiled Images
31 - ``TileWidth``, ``TileLength``, ``TileOffsets``,
32 ``TileByteCounts``
33
34 * - Image Colorimetry Information
35 - ``WhitePoint``, ``PrimaryChromaticities``, ``TransferFunction``,
36 ``ReferenceBlackWhite``
37
38 * - Class B for bilevel images
39 - ``SamplesPerPixel`` = 1
40
41 ``BitsPerSample`` = 1
42
43 ``Compression`` = 1 (none), 2 (CCITT 1D), or 32773 (PackBits)
44
45 ``PhotometricInterpretation`` = 0 (Min-is-White), 1 (Min-is-Black)
46
47 * - Class G for grayscale images
48 - ``SamplesPerPixel`` = 1
49
50 ``BitsPerSample`` = 4, 8
51
52 ``Compression`` = 1 (none) 5 (LZW)
53
54 ``PhotometricInterpretation`` = 0 (Min-is-White), 1 (Min-is-Black)
55
56 * - Class P for palette color images
57 - ``SamplesPerPixel`` = 1
58
59 ``BitsPerSample`` = 1-8
60
61 ``Compression`` = 1 (none) 5 (LZW)
62
63 ``PhotometricInterpretation`` = 3 (Palette RGB)
64
65 ``ColorMap``
66
67 * - Class R for RGB full color images
68 - ``SamplesPerPixel`` = 3
69
70 ``BitsPerSample`` = <8,8,8>
71
72 ``PlanarConfiguration`` = 1, 2
73
74 ``Compression`` = 1 (none) 5 (LZW)
75
76 ``PhotometricInterpretation`` = 2 (RGB)
77
78 * - Class F for facsimile
79 - (*Class B tags plus...*)
80
81 ``Compression`` = 3 (CCITT Group 3), 4 (CCITT Group 4)
82
83 ``FillOrder`` = 1 (MSB), 2 (LSB)
84
85 ``Group3Options`` = 1 (2d encoding), 4 (zero fill), 5 (2d+fill)
86
87 ``ImageWidth`` = 1728, 2048, 2482
88
89 ``NewSubFileType`` = 2
90
91 ``ResolutionUnit`` = 2 (Inch), 3 (Centimeter)
92
93 ``PageNumber``,
94 ``XResolution``,
95 ``YResolution``,
96 ``Software``,
97 ``BadFaxLines``,
98 ``CleanFaxData``,
99 ``ConsecutiveBadFaxLines``,
100 ``DateTime``,
101 ``DocumentName``,
102 ``ImageDescription``,
103 ``Orientation``
104
105 * - Class S for separated images
106 - ``SamplesPerPixel`` = 4
107
108 ``PlanarConfiguration`` = 1, 2
109
110 ``Compression`` = 1 (none), 5 (LZW)
111
112 ``PhotometricInterpretation`` = 5 (Separated)
113
114 ``InkSet`` = 1 (CMYK)
115
116 ``DotRange``,
117 ``InkNames``,
118 ``DotRange``,
119 ``TargetPrinter``
120
121 * - Class Y for YCbCr images
122 - ``SamplesPerPixel`` = 3
123
124 ``BitsPerSample`` = <8,8,8>
125
126 ``PlanarConfiguration`` = 1, 2
127
128 ``Compression`` = 1 (none), 5 (LZW), 7 (JPEG)
129
130 ``PhotometricInterpretation`` = 6 (YCbCr)
131
132 ``YCbCrCoefficients``,
133 ``YCbCrSubsampling``,
134 ``YCbCrPositioning``
135
136 (*colorimetry info from Appendix H; see above*)
137
138 * - Class "JPEG" for JPEG images (per TTN2)
139 - ``PhotometricInterpretation`` = 1 (grayscale), 2 (RGB), 5 (CMYK), 6 (YCbCr)
140
141 (*Class Y tags if YCbCr*)
142
143 (*Class S tags if CMYK*)
144
145 ``Compression`` = 7 (JPEG)
146
147 In addition, the library supports some optional compression algorithms
148 that are, in some cases, of dubious value.
149
150 .. list-table:: Compression algorithms
151 :widths: 5 20
152 :header-rows: 1
153
154 * - Compression tag value
155 - Compression algorithm
156 * - 32766
157 - NeXT 2-bit encoding
158 * - 32809
159 - ThunderScan 4-bit encoding
160 * - 32909
161 - Pixar companded 11-bit ZIP encoding
162 * - 32946
163 - PKZIP-style Deflate encoding (experimental)
164 * - 34676
165 - SGI 32-bit Log Luminance encoding (experimental)
166 * - 34677
167 - SGI 24-bit Log Luminance encoding (experimental)
168
169 Note that there is no support for the JPEG-related tags defined
170 in the 6.0 specification; the JPEG support is based on the post-6.0
171 proposal given in TIFF Technical Note #2.
172
173 .. note::
174
175 For more information on the experimental Log Luminance encoding
176 consult the materials available at
177 http://www.anyhere.com/gward/pixformat/tiffluv.html.
178
179 The following table shows the tags that are recognized
180 and how they are used by the library. If no use is indicated,
181 then the library reads and writes the tag, but does not use it internally.
182 For the meaning of the tags look in https://www.awaresystems.be/imaging/tiff/tifftags.html
183
184 :file:`libtiff` supports also many private tags allocated for organizations that wish to
185 store additional information in a TIFF file.
186 Tags for TIFF/EP and for Digital Negative (DNG) Specification 1.1.0
187 are included.
188
189 Note that some tags are meaningful only when a particular
190 compression scheme is being used; e.g. ``Group3Options``
191 is only useful if ``Compression``
192 is set to CCITT Group 3 encoding.
193 Tags of this sort are considered *codec-specific*
194 tags and the library does not recognize them except when the
195 ``Compression``
196 tag has been previously set to the relevant compression scheme.
197
198 Tags Recognized by LibTIFF
199 --------------------------
200
201 .. list-table:: Tags used by libtiff
202 :widths: 5 1 1 5
203 :header-rows: 1
204
205 * - Tag Name
206 - Value
207 - R/W<
208 - Library's Use (Comments)
209
210 * - ``SubfileType``
211 - 254
212 - R/W
213 - none (also known as ``NewSubfileType``)
214
215 * - ``OldSubfileType``
216 - 255
217 - R/W
218 - parsed but ignored (also known as ``SubFileType``)
219
220 * - ``ImageWidth``
221 - 256
222 - R/W
223 - lots
224
225 * - ``ImageLength``
226 - 257
227 - R/W
228 - lots
229
230 * - ``BitsPerSample``
231 - 258
232 - R/W
233 - lots
234
235 * - ``Compression``
236 - 259
237 - R/W
238 - to select appropriate codec
239
240 * - ``PhotometricInterpretation``
241 - 262
242 - R/W
243 - lots
244
245 * - ``Thresholding``
246 - 263
247 - R/W
248 - (tag in tif.h wrongly written as "Threshholding")
249
250 * - ``CellWidth``
251 - 264
252 - R/W
253 -
254
255 * - ``CellLength``
256 - 265
257 - R/W
258 -
259
260 * - ``FillOrder``
261 - 266
262 - R/W
263 - control bit order
264
265 * - ``DocumentName``
266 - 269
267 - R/W
268 -
269
270 * - ``ImageDescription``
271 - 270
272 - R/W
273 -
274
275 * - ``Make``
276 - 271
277 - R/W
278 -
279
280 * - ``Model``
281 - 272
282 - R/W
283 -
284
285 * - ``StripOffsets``
286 - 273
287 - R/W
288 - data i/o
289
290 * - ``Orientation``
291 - 274
292 - R/W
293 -
294
295 * - ``SamplesPerPixel``
296 - 277
297 - R/W
298 - lots
299
300 * - ``RowsPerStrip``
301 - 278
302 - R/W
303 - data i/o
304
305 * - ``StripByteCounts``
306 - 279
307 - R/W
308 - data i/o
309
310 * - ``MinSampleValue``
311 - 280
312 - R/W
313 -
314
315 * - ``MaxSampleValue``
316 - 281
317 - R/W
318 -
319
320 * - ``XResolution``
321 - 282
322 - R/W
323 -
324
325 * - ``YResolution``
326 - 283
327 - R/W
328 - used by Group 3 2d encoder
329
330 * - ``PlanarConfiguration``
331 - 284
332 - R/W
333 - data i/o
334
335 * - ``PageName``
336 - 285
337 - R/W
338 -
339
340 * - ``XPosition``
341 - 286
342 - R/W
343 -
344
345 * - ``YPosition``
346 - 287
347 - R/W
348 -
349
350 * - ``FreeOffsets``
351 - 288
352 - R/W
353 - parsed but ignored
354
355 * - ``FreeByteCounts``
356 - 289
357 - R/W
358 - parsed but ignored
359
360 * - ``GrayResponseUnit``
361 - 290
362 - R/W
363 - parsed but ignored
364
365 * - ``GrayResponseCurve``
366 - 291
367 - R/W
368 - parsed but ignored
369
370 * - ``ResolutionUnit``
371 - 296
372 - R/W
373 - used by Group 3 2d encoder
374
375 * - ``PageNumber``
376 - 297
377 - R/W
378 -
379
380 * - ``ColorResponseUnit``
381 - 300
382 - R/W
383 - parsed but ignored
384
385 * - ``TransferFunction``
386 - 301
387 - R/W
388 -
389
390 * - ``Software``
391 - 305
392 - R/W
393 -
394
395 * - ``DateTime``
396 - 306
397 - R/W
398 -
399
400 * - ``Artist``
401 - 315
402 - R/W
403 -
404
405 * - ``HostComputer``
406 - 316
407 - R/W
408 -
409
410 * - ``WhitePoint``
411 - 318
412 - R/W
413 -
414
415 * - ``PrimaryChromaticities``
416 - 319
417 - R/W
418 -
419
420 * - ``ColorMap``
421 - 320
422 - R/W
423 -
424
425 * - ``HalftoneHints``
426 - 321
427 - R/W
428 -
429
430 * - ``TileWidth``
431 - 322
432 - R/W
433 - data i/o
434
435 * - ``TileLength``
436 - 323
437 - R/W
438 - data i/o
439
440 * - ``TileOffsets``
441 - 324
442 - R/W
443 - data i/o
444
445 * - ``TileByteCounts``
446 - 325
447 - R/W
448 - data i/o
449
450 * - ``SubIFD``
451 - 330
452 - R/W
453 - subimage descriptor support
454
455 * - ``InkSet``
456 - 332
457 - R/W
458 -
459
460 * - ``InkNames``
461 - 333
462 - R/W
463 -
464
465 * - ``NumberOfInks``
466 - 334
467 - R/W
468 -
469
470 * - ``DotRange``
471 - 336
472 - R/W
473 -
474
475 * - ``TargetPrinter``
476 - 337
477 - R/W
478 -
479
480 * - ``ExtraSamples``
481 - 338
482 - R/W
483 - lots
484
485 * - ``SampleFormat``
486 - 339
487 - R/W
488 -
489
490 * - ``SMinSampleValue``
491 - 340
492 - R/W
493 -
494
495 * - ``SMaxSampleValue``
496 - 341
497 - R/W
498 -
499
500 * - ``ClipPath``
501 - 343
502 - R/W
503 -
504
505 * - ``XClipPathUnits``
506 - 344
507 - R/W
508 -
509
510 * - ``YClipPathUnits``
511 - 345
512 - R/W
513 -
514
515 * - ``YCbCrCoefficients``
516 - 529
517 - R/W
518 - used by ``TIFFReadRGBAImage`` support
519
520 * - ``YCbCrSubsampling``
521 - 530
522 - R/W
523 - tile / strip size calculations
524
525 * - ``YCbCrPositioning``
526 - 531
527 - R/W
528 -
529
530 * - ``ReferenceBlackWhite``
531 - 532
532 - R/W
533 -
534
535 * - ``XMLPacket``
536 - 700
537 - R/W
538 -
539
540 * - ``Matteing``
541 - 32995
542 - R
543 - none (obsoleted by ``ExtraSamples`` tag)
544
545 * - ``DataType``
546 - 32996
547 - R
548 - none (obsoleted by ``SampleFormat`` tag)
549
550 * - ``ImageDepth``
551 - 32997
552 - R/W
553 - tile / strip size calculations
554
555 * - ``TileDepth``
556 - 32998
557 - R/W
558 - tile / strip size calculations
559
560 * - ``ImageFullWidth``
561 - 33300
562 - R/W
563 -
564
565 * - ``ImageFullLength``
566 - 33301
567 - R/W
568 -
569
570 * - ``TextureFormat``
571 - 33302
572 - R/W
573 -
574
575 * - ``TextureWrapModes``
576 - 33303
577 - R/W
578 -
579
580 * - ``FieldOfViewCotangent``
581 - 33304
582 - R/W
583 -
584
585 * - ``MatrixWorldToScreen``
586 - 33305
587 - R/W
588 -
589
590 * - ``MatrixWorldToCamera``
591 - 33306
592 - R/W
593 -
594
595 * - ``Copyright``
596 - 33432
597 - R/W
598 -
599
600 * - ``RichTIFFIPTC``
601 - 33723
602 - R/W
603 - (also known as TIFF/EP IPTC/NAA;
604 :file:`libtiff` type is UNDEFINED or BYTE,
605 but often times incorrectly specified as LONG,
606 because TIFF/EP (ISO/DIS 12234-2) specifies type LONG or ASCII)
607
608 * - ``Photoshop``
609 - 34377
610 - R/W
611 -
612
613 * - ``EXIFIFDOffset``
614 - 34665
615 - R/W
616 -
617
618 * - ``ICC Profile``
619 - 34675
620 - R/W
621 -
622
623 * - ``GPSIFDOffset``
624 - 34853
625 - R/W
626 -
627
628 * - ``FaxRecvParams``
629 - 34908
630 - R/W
631 -
632
633 * - ``FaxSubAddress``
634 - 34909
635 - R/W
636 -
637
638 * - ``FaxRecvTime``
639 - 34910
640 - R/W
641 -
642
643 * - ``FaxDcs``
644 - 34911
645 - R/W
646 -
647
648 * - ``StoNits``
649 - 37439
650 - R/W
651 -
652
653 * - ``Adobe Photoshop Document Data Block``
654 - 37724
655 - R/W
656 -
657
658 * - ``InteroperabilityIFDOffset``
659 - 40965
660 - R/W
661 -
662
663 * - ``DNGVersion``
664 - 50706
665 - R/W
666 - DNG 1.0 tags
667
668 * - ``DNGBackwardVersion``
669 - 50707
670 - R/W
671 -
672
673 * - ``UniqueCameraModel``
674 - 50708
675 - R/W
676 -
677
678 * - ``LocalizedCameraModel``
679 - 50709
680 - R/W
681 -
682
683 * - ``CFAPlaneColor``
684 - 50710
685 - R/W
686 -
687
688 * - ``CFALayout``
689 - 50711
690 - R/W
691 -
692
693 * - ``LinearizationTable``
694 - 50712
695 - R/W
696 -
697
698 * - ``BlackLevelRepeatDim``
699 - 50713
700 - R/W
701 -
702
703 * - ``BlackLevel``
704 - 50714
705 - R/W
706 -
707
708 * - ``BlackLevelDeltaH``
709 - 50715
710 - R/W
711 -
712
713 * - ``BlackLevelDeltaV``
714 - 50716
715 - R/W
716 -
717
718 * - ``WhiteLevel``
719 - 50717
720 - R/W
721 -
722
723 * - ``DefaultScale``
724 - 50718
725 - R/W
726 -
727
728 * - ``DefaultCropOrigin``
729 - 50719
730 - R/W
731 -
732
733 * - ``DefaultCropSize``
734 - 50720
735 - R/W
736 -
737
738 * - ``ColorMatrix1``
739 - 50721
740 - R/W
741 -
742
743 * - ``ColorMatrix2``
744 - 50722
745 - R/W
746 -
747
748 * - ``CameraCalibration1``
749 - 50723
750 - R/W
751 -
752
753 * - ``CameraCalibration2``
754 - 50724
755 - R/W
756 -
757
758 * - ``ReductionMatrix1``
759 - 50725
760 - R/W
761 -
762
763 * - ``ReductionMatrix2``
764 - 50726
765 - R/W
766 -
767
768 * - ``AnalogBalance``
769 - 50727
770 - R/W
771 -
772
773 * - ``AsShotNeutral``
774 - 50728
775 - R/W
776 -
777
778 * - ``AsShotWhiteXY``
779 - 50729
780 - R/W
781 -
782
783 * - ``BaselineExposure``
784 - 50730
785 - R/W
786 -
787
788 * - ``BaselineNoise``
789 - 50731
790 - R/W
791 -
792
793 * - ``BaselineSharpness``
794 - 50732
795 - R/W
796 -
797
798 * - ``BayerGreenSplit``
799 - 50733
800 - R/W
801 -
802
803 * - ``LinearResponseLimit``
804 - 50734
805 - R/W
806 -
807
808 * - ``CameraSerialNumber``
809 - 50735
810 - R/W
811 -
812
813 * - ``LensInfo``
814 - 50736
815 - R/W
816 -
817
818 * - ``ChromaBlurRadius``
819 - 50737
820 - R/W
821 -
822
823 * - ``AntiAliasStrength``
824 - 50738
825 - R/W
826 -
827
828 * - ``ShadowScale``
829 - 50739
830 - R/W
831 -
832
833 * - ``DNGPrivateData``
834 - 50740
835 - R/W
836 -
837
838 * - ``MakerNoteSafety``
839 - 50741
840 - R/W
841 -
842
843 * - ``CalibrationIlluminant1``
844 - 50778
845 - R/W
846 -
847
848 * - ``CalibrationIlluminant2``
849 - 50779
850 - R/W
851 -
852
853 * - ``BestQualityScale``
854 - 50780
855 - R/W
856 -
857
858 * - ``RawDataUniqueID``
859 - 50781
860 - R/W
861 -
862
863 * - ``OriginalRawFileName``
864 - 50827
865 - R/W
866 -
867
868 * - ``OriginalRawFileData``
869 - 50828
870 - R/W
871 -
872
873 * - ``ActiveArea``
874 - 50829
875 - R/W
876 -
877
878 * - ``MaskedAreas``
879 - 50830
880 - R/W
881 -
882
883 * - ``AsShotICCProfile``
884 - 50831
885 - R/W
886 -
887
888 * - ``AsShotPreProfileMatrix``
889 - 50832
890 - R/W
891 -
892
893 * - ``CurrentICCProfile``
894 - 50833
895 - R/W
896 -
897
898 * - ``CurrentPreProfileMatrix``
899 - 50834
900 - R/W
901 -
902
903 * - ``PerSample``
904 - 65563
905 - R/W
906 - (only internal pseudo tag)
907
908 * - ``Indexed``
909 - 346
910 - R/W
911 - TIFF/FX tags
912
913 * - ``GlobalParametersIFD``
914 - 400
915 - R/W
916 -
917
918 * - ``ProfileType``
919 - 401
920 - R/W
921 -
922
923 * - ``FaxProfile``
924 - 402
925 - R/W
926 -
927
928 * - ``CodingMethods``
929 - 403
930 - R/W
931 -
932
933 * - ``VersionYear``
934 - 404
935 - R/W
936 -
937
938 * - ``ModeNumber``
939 - 405
940 - R/W
941 -
942
943 * - ``Decode``
944 - 433
945 - R/W
946 -
947
948 * - ``ImageBaseColor``
949 - 434
950 - R/W
951 -
952
953 * - ``T82Options``
954 - 435
955 - R/W
956 -
957
958 * - ``StripRowCounts``
959 - 559
960 - R/W
961 - part of RFC 2301 for fax
962
963 * - ``ImageLayer``
964 - 34732
965 - R/W
966 -
967
968 The ``Matteing`` and ``DataType``
969 tags have been obsoleted by the 6.0
970 ``ExtraSamples`` and ``SampleFormat`` tags.
971 Consult the documentation on the
972 ``ExtraSamples`` tag and Associated Alpha for elaboration. Note however
973 that if you use Associated Alpha, you are expected to save data that is
974 pre-multipled by Alpha. If this means nothing to you, check out
975 Porter & Duff's paper in the '84 SIGGRAPH proceedings: "Compositing Digital
976 Images".
977
978 Tag ``RichTIFFIPTC`` (33723) is defined wrongly in TIFF/EP definition as "LONG or ASCII".
979 ``libtiff`` defines it as "UNDEFINED or BYTE".
980
981 The ``ImageDepth``
982 tag is a non-standard, but registered tag that specifies
983 the Z-dimension of volumetric data. The combination of ``ImageWidth``,
984 ``ImageLength``, and ``ImageDepth``,
985 defines a 3D volume of pixels that are
986 further specified by ``BitsPerSample`` and
987 ``SamplesPerPixel``. The ``TileDepth``
988 tag (also non-standard, but registered) can be used to specified a
989 subvolume "tiling" of a volume of data.
990
991 The Colorimetry, and CMYK tags are additions that appear in TIFF 6.0.
992 Consult the TIFF 6.0 specification and :doc:`index`.
993
994 Codecs / Compression
995 --------------------
996
997 The following tags are used by codecs.
998
999 .. list-table:: Codec / Compression Tags used by libtiff
1000 :widths: 5 1 1 5
1001 :header-rows: 1
1002
1003 * - Tag Name
1004 - Value
1005 - R/W<
1006 - Library's Use (Comments)
1007
1008 * - ``Predictor``
1009 - 317
1010 - R/W
1011 - LZW codec
1012
1013 * - ``JPEGTables``
1014 - 347
1015 - R/W
1016 - JPEG
1017
1018 * - ``JpegInterchangeFormat``
1019 - 513
1020 - R/W
1021 - OJPEG
1022
1023 * - ``JpegInterchangeFormatLength``
1024 - 514
1025 - R/W
1026 - OJPEG
1027
1028 * - ``JpegQTables``
1029 - 519
1030 - R/W
1031 - OJPEG
1032
1033 * - ``JpegDcTables``
1034 - 520
1035 - R/W
1036 - OJPEG
1037
1038 * - ``JpegAcTables``
1039 - 521
1040 - R/W
1041 - OJPEG
1042
1043 * - ``JpegProc``
1044 - 512
1045 - R/W
1046 - OJPEG
1047
1048 * - ``JpegRestartInterval``
1049 - 515
1050 - R/W
1051 - OJPEG
1052
1053 * - ``BadFaxLines``
1054 - 326
1055 - R/W
1056 - CCITT / fax
1057
1058 * - ``CleanFaxData``
1059 - 327
1060 - R/W
1061 - CCITT / fax
1062
1063 * - ``ConsecutiveBadFaxLines``
1064 - 328
1065 - R/W
1066 - CCITT / fax
1067
1068 * - ``Group3Options``
1069 - 292
1070 - R/W
1071 - CCITT / fax
1072
1073 * - ``Group4Options``
1074 - 293
1075 - R/W
1076 - CCITT / fax
1077
1078 * - ``LercParameters``
1079 - 50674
1080 - R/W
1081 - LERC
1082
1083 Note: This *codec-specific*
1084 tags and the library does not recognize them except when the
1085 ``Compression``
1086 tag has been previously set to the relevant compression scheme.
1087
1088 The JPEG-related tag is specified in
1089 :doc:`technote2`, which defines
1090 a revised JPEG-in-TIFF scheme (revised over the appendix that was
1091 part of the TIFF 6.0 specification).
1092
1093 EXIF / GPS Custom IFDs
1094 ----------------------
1095
1096 In addition to the standard TIFF tags, :file:`libtiff` has predefined IFDs
1097 (image file directories) with the tags for EXIF (version 2.32) and EXIF-GPS
1098 as custom directories.
1099 For reading / writing of this IFDs refer to :doc:`/functions/TIFFCustomDirectory`.
1100
1101 EXIF Custom Tags
1102 ................
1103
1104 .. list-table:: EXIF 2.32 Tags used by libtiff
1105 :widths: 5 1 1 5
1106 :header-rows: 1
1107
1108 * - Tag Name
1109 - Value
1110 - R/W<
1111 - Library's Use (Comments)
1112
1113 * - ``ExposureTime``
1114 - 33434
1115 - R/W
1116 -
1117
1118 * - ``FNumber``
1119 - 33437
1120 - R/W
1121 -
1122
1123 * - ``ExposureProgram``
1124 - 34850
1125 - R/W
1126 -
1127
1128 * - ``SpectralSensitivity``
1129 - 34852
1130 - R/W
1131 -
1132
1133 * - ``ISOSpeedRatings``
1134 - 34855
1135 - R/W
1136 - After EXIF 2.2.1 ISOSpeedRatings is named ``PhotographicSensitivity``.
1137 In addition, while "Count=Any", only 1 count should be used.
1138
1139 * - ``OptoelectricConversionFactor``
1140 - 34856
1141 - R/W
1142 -
1143
1144 * - ``SensitivityType``
1145 - 34864
1146 - R/W
1147 -
1148
1149 * - ``StandardOutputSensitivity``
1150 - 34865
1151 - R/W
1152 -
1153
1154 * - ``RecommendedExposureIndex``
1155 - 34866
1156 - R/W
1157 -
1158
1159 * - ``ISOSpeed``
1160 - 34867
1161 - R/W
1162 -
1163
1164 * - ``ISOSpeedLatitudeyyy``
1165 - 34868
1166 - R/W
1167 -
1168
1169 * - ``ISOSpeedLatitudezzz``
1170 - 34869
1171 - R/W
1172 -
1173
1174 * - ``ExifVersion``
1175 - 36864
1176 - R/W
1177 -
1178
1179 * - ``DateTimeOriginal``
1180 - 36867
1181 - R/W
1182 -
1183
1184 * - ``DateTimeDigitized``
1185 - 36868
1186 - R/W
1187 -
1188
1189 * - ``OffsetTime``
1190 - 36880
1191 - R/W
1192 -
1193
1194 * - ``OffsetTimeOriginal``
1195 - 36881
1196 - R/W
1197 -
1198
1199 * - ``OffsetTimeDigitized``
1200 - 36882
1201 - R/W
1202 -
1203
1204 * - ``ComponentsConfiguration``
1205 - 37121
1206 - R/W
1207 -
1208
1209 * - ``CompressedBitsPerPixel``
1210 - 37122
1211 - R/W
1212 -
1213
1214 * - ``ShutterSpeedValue``
1215 - 37377
1216 - R/W
1217 -
1218
1219 * - ``ApertureValue``
1220 - 37378
1221 - R/W
1222 -
1223
1224 * - ``BrightnessValue``
1225 - 37379
1226 - R/W
1227 -
1228
1229 * - ``ExposureBiasValue``
1230 - 37380
1231 - R/W
1232 -
1233
1234 * - ``MaxApertureValue``
1235 - 37381
1236 - R/W
1237 -
1238
1239 * - ``SubjectDistance``
1240 - 37382
1241 - R/W
1242 -
1243
1244 * - ``MeteringMode``
1245 - 37383
1246 - R/W
1247 -
1248
1249 * - ``LightSource``
1250 - 37384
1251 - R/W
1252 -
1253
1254 * - ``Flash``
1255 - 37385
1256 - R/W
1257 -
1258
1259 * - ``FocalLength``
1260 - 37386
1261 - R/W
1262 -
1263
1264 * - ``SubjectArea``
1265 - 37396
1266 - R/W
1267 -
1268
1269 * - ``MakerNote``
1270 - 37500
1271 - R/W
1272 -
1273
1274 * - ``UserComment``
1275 - 37510
1276 - R/W
1277 -
1278
1279 * - ``SubSecTime``
1280 - 37520
1281 - R/W
1282 -
1283
1284 * - ``SubSecTimeOriginal``
1285 - 37521
1286 - R/W
1287 -
1288
1289 * - ``SubSecTimeDigitized``
1290 - 37522
1291 - R/W
1292 -
1293
1294 * - ``Temperature``
1295 - 37888
1296 - R/W
1297 -
1298
1299 * - ``Humidity``
1300 - 37889
1301 - R/W
1302 -
1303
1304 * - ``Pressure``
1305 - 37890
1306 - R/W
1307 -
1308
1309 * - ``WaterDepth``
1310 - 37891
1311 - R/W
1312 -
1313
1314 * - ``Acceleration``
1315 - 37892
1316 - R/W
1317 -
1318
1319 * - ``CameraElevationAngle``
1320 - 37893
1321 - R/W
1322 -
1323
1324 * - ``FlashpixVersion``
1325 - 40960
1326 - R/W
1327 -
1328
1329 * - ``ColorSpace``
1330 - 40961
1331 - R/W
1332 -
1333
1334 * - ``PixelXDimension``
1335 - 40962
1336 - R/W
1337 -
1338
1339 * - ``PixelYDimension``
1340 - 40963
1341 - R/W
1342 -
1343
1344 * - ``RelatedSoundFile``
1345 - 40964
1346 - R/W
1347 -
1348
1349 * - ``FlashEnergy``
1350 - 41483
1351 - R/W
1352 -
1353
1354 * - ``SpatialFrequencyResponse``
1355 - 41484
1356 - R/W
1357 -
1358
1359 * - ``FocalPlaneXResolution``
1360 - 41486
1361 - R/W
1362 -
1363
1364 * - ``FocalPlaneYResolution``
1365 - 41487
1366 - R/W
1367 -
1368
1369 * - ``FocalPlaneResolutionUnit``
1370 - 41488
1371 - R/W
1372 -
1373
1374 * - ``SubjectLocation``
1375 - 41492
1376 - R/W
1377 -
1378
1379 * - ``ExposureIndex``
1380 - 41493
1381 - R/W
1382 -
1383
1384 * - ``SensingMethod``
1385 - 41495
1386 - R/W
1387 -
1388
1389 * - ``FileSource``
1390 - 41728
1391 - R/W
1392 -
1393
1394 * - ``SceneType``
1395 - 41729
1396 - R/W
1397 -
1398
1399 * - ``CFAPattern``
1400 - 41730
1401 - R/W
1402 -
1403
1404 * - ``CustomRendered``
1405 - 41985
1406 - R/W
1407 -
1408
1409 * - ``ExposureMode``
1410 - 41986
1411 - R/W
1412 -
1413
1414 * - ``WhiteBalance``
1415 - 41987
1416 - R/W
1417 -
1418
1419 * - ``DigitalZoomRatio``
1420 - 41988
1421 - R/W
1422 -
1423
1424 * - ``FocalLengthIn35mmFilm``
1425 - 41989
1426 - R/W
1427 -
1428
1429 * - ``SceneCaptureType``
1430 - 41990
1431 - R/W
1432 -
1433
1434 * - ``GainControl``
1435 - 41991
1436 - R/W
1437 -
1438
1439 * - ``Contrast``
1440 - 41992
1441 - R/W
1442 -
1443
1444 * - ``Saturation``
1445 - 41993
1446 - R/W
1447 -
1448
1449 * - ``Sharpness``
1450 - 41994
1451 - R/W
1452 -
1453
1454 * - ``DeviceSettingDescription``
1455 - 41995
1456 - R/W
1457 -
1458
1459 * - ``SubjectDistanceRange``
1460 - 41996
1461 - R/W
1462 -
1463
1464 * - ``ImageUniqueID``
1465 - 42016
1466 - R/W
1467 -
1468
1469 * - ``CameraOwnerName``
1470 - 42032
1471 - R/W
1472 -
1473
1474 * - ``BodySerialNumber``
1475 - 42033
1476 - R/W
1477 -
1478
1479 * - ``LensSpecification``
1480 - 42034
1481 - R/W
1482 -
1483
1484 * - ``LensMake``
1485 - 42035
1486 - R/W
1487 -
1488
1489 * - ``LensModel``
1490 - 42036
1491 - R/W
1492 -
1493
1494 * - ``LensSerialNumber``
1495 - 42037
1496 - R/W
1497 -
1498
1499 * - ``Gamma``
1500 - 42240
1501 - R/W
1502 -
1503
1504 * - ``CompositeImage``
1505 - 42080
1506 - R/W
1507 -
1508
1509 * - ``SourceImageNumberOfCompositeImage``
1510 - 42081
1511 - R/W
1512 -
1513
1514 * - ``SourceExposureTimesOfCompositeImage``
1515 - 42082
1516 - R/W
1517 -
1518
1519 GPS Custom Tags
1520 ...............
1521
1522 .. list-table:: GPS 2.32 Tags used by libtiff
1523 :widths: 5 1 1 5
1524 :header-rows: 1
1525
1526 * - Tag Name
1527 - Value
1528 - R/W<
1529 - Library's Use (Comments)
1530
1531 * - ``VersionID``
1532 - 0
1533 - R/W
1534 -
1535
1536 * - ``LatitudeRef``
1537 - 1
1538 - R/W
1539 -
1540
1541 * - ``Latitude``
1542 - 2
1543 - R/W
1544 -
1545
1546 * - ``LongitudeRef``
1547 - 3
1548 - R/W
1549 -
1550
1551 * - ``Longitude``
1552 - 4
1553 - R/W
1554 -
1555
1556 * - ``AltitudeRef``
1557 - 5
1558 - R/W
1559 -
1560
1561 * - ``Altitude``
1562 - 6
1563 - R/W
1564 -
1565
1566 * - ``TimeStamp``
1567 - 7
1568 - R/W
1569 -
1570
1571 * - ``Satellites``
1572 - 8
1573 - R/W
1574 -
1575
1576 * - ``Status``
1577 - 9
1578 - R/W
1579 -
1580
1581 * - ``MeasureMode``
1582 - 10
1583 - R/W
1584 -
1585
1586 * - ``DOP``
1587 - 11
1588 - R/W
1589 -
1590
1591 * - ``SpeedRef``
1592 - 12
1593 - R/W
1594 -
1595
1596 * - ``Speed``
1597 - 13
1598 - R/W
1599 -
1600
1601 * - ``TrackRef``
1602 - 14
1603 - R/W
1604 -
1605
1606 * - ``Track``
1607 - 15
1608 - R/W
1609 -
1610
1611 * - ``ImgDirectionRef``
1612 - 16
1613 - R/W
1614 -
1615
1616 * - ``ImgDirection``
1617 - 17
1618 - R/W
1619 -
1620
1621 * - ``MapDatum``
1622 - 18
1623 - R/W
1624 -
1625
1626 * - ``DestLatitudeRef``
1627 - 19
1628 - R/W
1629 -
1630
1631 * - ``DestLatitude``
1632 - 20
1633 - R/W
1634 -
1635
1636 * - ``DestLongitudeRef``
1637 - 21
1638 - R/W
1639 -
1640
1641 * - ``DestLongitude``
1642 - 22
1643 - R/W
1644 -
1645
1646 * - ``DestBearingRef``
1647 - 23
1648 - R/W
1649 -
1650
1651 * - ``DestBearing``
1652 - 24
1653 - R/W
1654 -
1655
1656 * - ``DestDistanceRef``
1657 - 25
1658 - R/W
1659 -
1660
1661 * - ``DestDistance``
1662 - 26
1663 - R/W
1664 -
1665
1666 * - ``ProcessingMethod``
1667 - 27
1668 - R/W
1669 -
1670
1671 * - ``AreaInformation``
1672 - 28
1673 - R/W
1674 -
1675
1676 * - ``DateStamp``
1677 - 29
1678 - R/W
1679 -
1680
1681 * - ``Differential``
1682 - 30
1683 - R/W
1684 -
1685
1686 * - ``HorizontalPositioningError``
1687 - 31
1688 - R/W
1689 -
1690