RAW2TIFF

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO

NAME

raw2tiff − create a TIFF file from a raw data

SYNOPSIS

raw2tiff -w <number> [ options ] input.raw output.tif

DESCRIPTION

raw2tiff converts a raw byte sequence into TIFF. By default, the TIFF image is created with data samples packed (PlanarConfiguration=1), compressed with the PackBits algorithm (Compression=32773), and with each strip no more than 8 kilobytes. These characteristics can overridden, or explicitly specified with the options described below.

OPTIONS

−H <number>

size of input image file header in bytes (0 by default). This amount of data just will be skipped from the start of file while reading.

−w <number>

width of input image in pixels. You must set this parameter.

−l <number>

length of input image in lines. Will be calculated from the size of input file if not specified.

−b <number>

number of bands in input image (1 by default).

−d data_type

type of samples in input image, where data_type may be:

byte

8-bit unsigned integer (default),

short

16-bit unsigned integer,

long

32-bit unsigned integer,

sbyte

8-bit signed integer,

sshort

16-bit signed integer,

slong

32-bit signed integer,

float

32-bit IEEE floating point,

double

64-bit IEEE floating point,

−i config

type of samples interleaving in input image, where config may be:

pixel

pixel interleaved data (default),

band

band interleaved data.

−s

swap bytes fetched from the input file.

−L

input data has LSB2MSB bit order (default).

−M

input data has MSB2LSB bit order.

−c

Specify a compression scheme to use when writing image data: −c none for no compression, -c packbits for the PackBits compression algorithm (the default), -c jpeg for the baseline JPEG compression algorithm, -c zip for the Deflate compression algorithm, and −c lzw for Lempel-Ziv & Welch.

−r <number>

Write data with a specified number of rows per strip; by default the number of rows/strip is selected so that each strip is approximately 8 kilobytes.

SEE ALSO

pal2rgb(1), tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)