| 1 |
BigTIFF Design |
| 2 |
============== |
| 3 |
|
| 4 |
|
| 5 |
This design details a 64-bit (larger than 4GB) TIFF format specification. |
| 6 |
The design is based on a proposal by Steve Carlsen of Adobe, with input |
| 7 |
from various other parties. |
| 8 |
|
| 9 |
|
| 10 |
Briefly |
| 11 |
------- |
| 12 |
|
| 13 |
* Version = 43 |
| 14 |
* 8-byte offset to first IFD |
| 15 |
* Value/Offset fields are 8 bytes |
| 16 |
* 8-byte offset to the next IFD |
| 17 |
* add ``TIFFType`` of ``LONG8``, an 8 byte (unsigned) int |
| 18 |
* ``StripOffsets`` and ``TileOffsets`` and ``ByteCounts`` can be LONG8 |
| 19 |
|
| 20 |
|
| 21 |
More Detail |
| 22 |
----------- |
| 23 |
|
| 24 |
* The Version ID, in header bytes 2-3, formerly decimal 42, now changes to **43** |
| 25 |
* Header bytes 4-5 contain the decimal number **8**. |
| 26 |
|
| 27 |
* If there is some other number here, a reader should give up. |
| 28 |
* This is to provide a nice way to move to 16-byte pointers some day. |
| 29 |
|
| 30 |
* Header bytes 6-7 are reserved and must be **zero**. |
| 31 |
|
| 32 |
* If they're not, a reader should give up. |
| 33 |
|
| 34 |
* Header bytes 8-15 contain the 8-byte offset to the first IFD. |
| 35 |
* Value/Offset fields are 8 bytes long, and take up bytes 8-15 in an IFD entry. |
| 36 |
|
| 37 |
* If the value is ≤ 8 bytes, it must be stored in the field. |
| 38 |
* All values must begin at an 8-byte-aligned address. |
| 39 |
|
| 40 |
* 8-byte offset to the Next_IFD, at the end of an IFD. |
| 41 |
* To keep IFD entries 8-byte-aligned, we begin with an 8-byte (instead of 2-byte) count of the number of directory entries. |
| 42 |
* Add ``TIFFTypes`` of ``LONG8`` (= 16), an 8 byte (unsigned) int, and ``SLONG8`` (= 17). |
| 43 |
* Add ``TIFFType`` ``IFD8`` (=18) an 8byte IFD offset. |
| 44 |
* ``StripOffsets`` and ``TileOffsets`` and ``ByteCounts`` may be ``LONG8`` or the traditionally allowed ``LONG`` or ``SHORT``. |
| 45 |
|
| 46 |
* The proposed extension is :file:`.tf8`, and call it "8-Byte TIFF". |
| 47 |
|
| 48 |
Otherwise, it's just like "original TIFF." ("TIFF Classic?") |
| 49 |
|
| 50 |
|
| 51 |
Open Issues |
| 52 |
----------- |
| 53 |
|
| 54 |
* What to call the new format |
| 55 |
|
| 56 |
* ChrisCox -- I don't think end users will understand what "8-byte TIFF" means |
| 57 |
* AndreyKiselev - 23 Sep 2004 -- What about TIFF64? "64" is a widely used buzzword and should be directly associated with the 64-bit offsets and 64-bit architectures. |
| 58 |
|
| 59 |
* What 3 character file extension to use (gotta be DOS compatible) |
| 60 |
* What 4 character file type to use (for Macintosh) |
| 61 |
* What MIME type to use |
| 62 |
|
| 63 |
|
| 64 |
Samples |
| 65 |
------- |
| 66 |
|
| 67 |
`Example files <http://www.awaresystems.be/imaging/tiff/bigtiff/BigTIFFSamples.zip>`_ |
| 68 |
from Joris Van Damme. |
| 69 |
|
| 70 |
|
| 71 |
Changes |
| 72 |
------- |
| 73 |
|
| 74 |
* ``TIFFType`` 13 is ``ttIFD``, 14 is assigned to ``ttUnicode``, and 15 is assigned to ``ttComplex``. So, I changed the types for ``ttLong8`` and ``ttSLong8`` to 16 and 17, respectively. |
| 75 |
|
| 76 |
* AndreyKiselev - 23 Sep 2004 -- Where are these fields defined? Is there any new Technical Note or something? And what is encoding behind the word "Unicode"? |
| 77 |
* ChrisCox - 27 Sep 2004 -- They are in the Adobe TIFF definitions. I am still working on releasing updated TIFF documentation. |
| 78 |
|
| 79 |
* Added list of open issues. |
| 80 |
* settle on version 43 |
| 81 |
* cleanup |
| 82 |
* ``TIFFType`` 18 (8 byte IFD) added. |
| 83 |
|
| 84 |
* Clarified that fields which may be ``LONG8`` can also be one of the old supported types. |
| 85 |
|
| 86 |
|
| 87 |
See also |
| 88 |
-------- |
| 89 |
|
| 90 |
`AWare Systems' informal overview of the BigTIFF proposal <http://www.awaresystems.be/imaging/tiff/bigtiff.html>`_. |