AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2020.07.06 10:19 "[Tiff] TIFF Tile Size and TileByteCounts", by Juergen Stumpe
2020.07.06 12:12 "Re: [Tiff] TIFF Tile Size and TileByteCounts", by Kemp Watson
2020.07.06 13:56 "Re: [Tiff] TIFF Tile Size and TileByteCounts", by Olivier Paquet

2020.07.06 10:19 "[Tiff] TIFF Tile Size and TileByteCounts", by Juergen Stumpe

Hello,

I have a question regarding the relation of tile size (TileWidth x TileLength) and the number of bytes to be read from file (TileByteCounts). According the tags as listed below, the size of each tile is 256 x 256 = 65536 bytes. But the number of bytes per tile ( TileByteCounts ) are either smaller (e.g. 149, 6930,... bytes) or bigger (e.g. 74613, 128520,..... bytes).

Hence, my question is what e.g. the value 149 means exactly and how to create a 256 x 256 bytes tile out of only 149 bytes.

Thanks

Juergen

  1. '256 (0x100: ImageWidth): 7551 (1 Short)'
  2. '257 (0x101: ImageLength): 7351 (1 Short)'
  3. '258 (0x102: BitsPerSample): 16 (1 Short)'
  4. '259 (0x103: Compression): 8 (1 Short)'
  5. '262 (0x106: PhotometricInterpretation): 1 (1 Short)'
  6. '277 (0x115: SamplesPerPixel): 1 (1 Short)'
  7. '284 (0x11c: PlanarConfiguration): 1 (1 Short)'
  8. '317 (0x13d: Predictor): 1 (1 Short)'
  9. '322 (0x142: TileWidth): 256 (1 Short)'
  10. '323 (0x143: TileLength): 256 (1 Short)'
  11. '324 (0x144: TileOffsets): 21959794, 21959943, 21960092, 21960241, 21960390, 21960539, 22035152, 22118798, 22180433, 22214326, 22221256, 22221405, 22221554, 22221703, 22221852, 22222001, 22222150, 22222299, 22222448, 22222597, 22222746, 22222895, 22223044, 22223193, 22223342, 22223491, 22223640, 22223789, 22223938, 22224087, 22224236, 22224385, 22224534, 22224683, 22224832, 22226190, 22342852, 22471056, 22599557, 22728077, 22854747, 22959474, 23030328, 23075044, 23092411, 23092850, 23092999, 23093148, 23093297, 23093446, 23093595... (870) (870 Long)'
  12. '325 (0x145: TileByteCounts): 149, 149, 149, 149, 149, 74613, 83646, 61635, 33893, 6930, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 1358, 116662, 128204, 128501, 128520, 126670, 104727, 70854, 44716, 17367, 439, 149, 149, 149, 149, 149, 149... (870) (870 Long)'
  13. '339 (0x153: SampleFormat): 1 (1 Short)'
  14. '33550 (0x830e: ModelPixelScaleTag): 30.0, 30.0, 0.0 (3 Double)'
  15. '33922 (0x8482: ModelTiepointTag): 0.0, 0.0, 0.0, 370800.0, 3144000.0, 0.0 (6 Double)'
  16. '34735 (0x87af: GeoKeyDirectoryTag): 1, 1, 0, 7, 1024, 0, 1, 1, 1025, 0, 1, 2, 1026, -30799, 22, 0, 2049, -30799, 7, 22, 2054, 0, 1, 9102, 3072, 0, 1, 32645, 3076, 0, 1, 9001 (32 Short)'
  17. '34737 (0x87b1: GeoAsciiParamsTag): 'WGS 84 / UTM zone 45N|WGS 84|' (30 ASCII)'