TIFF Image

From XentaxWiki
Revision as of 18:38, 30 January 2021 by imported>Ikskoks (→‎Format Specifications)
Jump to navigation Jump to search

Back to index | Edit this page

TIFF


Format Specifications

// header
2 bytes (char) - endianess  // "II" - little endian
                            // "MM" - big endian
2 bytes (uint16) - magic // "42"
4 bytes (uint32) - offset of the first IFD (Image File Directory)


// data
x bytes - image data


// directory
2 bytes (uint16) - number of directory entries

num_of_entries *
{
   // IFD entry structure
   2 bytes (uint16) - entry tag
   2 bytes (uint16) - field type  // "1" = BYTE (uint8)
                                  // "2" = ASCII (char)
                                  // "3" = SHORT (uint16)
                                  // "4" = LONG (uint32)
                                  // "5" = RATIONAL (two LONGs)
                                  // "6" = SBYTE (int8)
                                  // "7" = UNDEFINED (1 byte that can contain anything)
                                  // "8" = SSHORT (int16)
                                  // "9" = SLONG (int32)
                                  // "10" = SRATIONAL (two SLONGs)
                                  // "11" = FLOAT (4-byte float)
                                  // "12" = DOUBLE (8-byte double)
   4 bytes (uint32) - number of values
   4 bytes (uint32) - value offset


MultiEx BMS Script

Not written yet.

Notes and Comments

None.

Compatible Programs

  • IrfanView
  • GIMP

See Also