TIFF 6.0 Specification
Final—June 3, 1992
RowsPerStrip
The number of rows per strip.
Tag
= 278 (116.H)
Type = SHORT or LONG
N
=1
TIFF image data is organized into strips for faster random access and efficient I/O
buffering.
RowsPerStrip and ImageLength together tell us the number of strips in the entire
image. The equation is:
StripsPerImage
= floor ((ImageLength + RowsPerStrip - 1) / RowsPerStrip).
StripsPerImage is
not
a field. It is merely a value that a TIFF reader will want to
compute because it specifies the number of StripOffsets and StripByteCounts for the
image.
Note that either SHORT or LONG values can be used to specify RowsPerStrip.
SHORT values may be used for small TIFF files. It should be noted, however, that
earlier TIFF specification revisions required LONG values and that some software
may not accept SHORT values.
The default is 2**32 - 1, which is effectively infinity. That is, the entire image is
one strip.
Use of a single strip is not recommended. Choose RowsPerStrip such that each strip is
about 8K bytes, even if the data is not compressed, since it makes buffering simpler
for readers. The “8K” value is fairly arbitrary, but seems to work well.
See also ImageLength, StripOffsets, StripByteCounts, TileWidth, TileLength,
TileOffsets, TileByteCounts.
SamplesPerPixel
The number of components per pixel.
Tag
= 277 (115.H)
Type = SHORT
N
=1
SamplesPerPixel is
usually
1 for bilevel, grayscale, and palette-color images.
SamplesPerPixel is
usually
3 for RGB images.
Default = 1. See also BitsPerSample, PhotometricInterpretation,
ExtraSamples.
Software
Name and version number of the software package(s) used to create the image.
Tag
= 305 (131.H)
Type = ASCII
See also Make, Model.
39