raw2tiff converts a raw byte sequence into TIFF. By default, the TIFF image is created with data samples packed, compressed with the PackBits algorithm, and with each strip no more than 8 kilobytes.