RAS2TIFF(1) UNIX System V(May 2, 1989) RAS2TIFF(1)
NAME
ras2tiff - create a TIFF file from a Sun rasterfile
SYNOPSIS
ras2tiff [ -none ] [ -packbits ] [ -lzw ] [ -rowsperstrip n ] rasterfile
tiff-file
DESCRIPTION
Ras2tiff converts a file in the Sun rasterfile format to TIFF. By
default, the TIFF image is created with data samples packed
(PlanarConfiguration=1), compressed with the Lempel-Ziv & Welch algorithm
(Compression=5), and with each strip no more than 8 kilobytes. These
characteristics can overriden, or explicitly specified with the following
options: -none (use no compression), -packbits (use the PackBits
compression algorithm), -lzw (use Lempel-Ziv & Welch - default),
-rowsperstrip n (pack n rows in each strip). Any colormap information in
the rasterfile is carried over to the TIFF file by including a Colormap
tag in the output file. If the rasterfile has a colormap, the
PhotometricInterpretation tag is set to 3 (palette); otherwise it is set
to 2 (RGB) if the depth is 24 or 1 (min-is-black) if the depth is not 24.
BUGS
Does not handle all possible rasterfiles. In particular, ras2tiff does
not handle run-length encoded images.
SEE ALSO
pal2rgb(1), tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)
10/89 Page 1