1RAS2TIFF(1)                 General Commands Manual                RAS2TIFF(1)
2
3
4

NAME

6       ras2tiff - create a TIFF file from a Sun rasterfile
7

SYNOPSIS

9       ras2tiff [ options ] input.ras output.tif
10

DESCRIPTION

12       ras2tiff  converts  a  file  in  the Sun rasterfile format to TIFF.  By
13       default, the TIFF image is created with data samples packed (PlanarCon‐
14       figuration=1),  compressed  with the Lempel-Ziv & Welch algorithm (Com‐
15       pression=5), and with each strip no more than 8 kilobytes.  These char‐
16       acteristics  can  overridden,  or explicitly specified with the options
17       described below.
18
19       Any colormap information in the rasterfile is carried over to the  TIFF
20       file by including a Colormap tag in the output file.  If the rasterfile
21       has a colormap, the PhotometricInterpretation tag is  set  to  3  (pal‐
22       ette);  otherwise it is set to 2 (RGB) if the depth is 24 or 1 (min-is-
23       black) if the depth is not 24.
24

OPTIONS

26       -c     Specify a compression scheme to use when writing image data:  -c
27              none  for  no compression, -c packbits for the PackBits compres‐
28              sion algorithm, -c jpeg for the baseline JPEG compression  algo‐
29              rithm,  -c zip for the Deflate compression algorithm, and -c lzw
30              for Lempel-Ziv & Welch (the default).
31
32       -r     Write data with a specified number of rows per strip; by default
33              the  number  of  rows/strip  is  selected  so that each strip is
34              approximately 8 kilobytes.
35

BUGS

37       Does not handle all possible rasterfiles.  In particular, ras2tiff does
38       not handle run-length encoded images.
39

SEE ALSO

41       pal2rgb(1), tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)
42
43       Libtiff library home page: http://www.remotesensing.org/libtiff/
44
45
46
47
48libtiff                        November 2, 2005                    RAS2TIFF(1)
Impressum