Current File : //usr/man/man1/ras2tiff.1
'\" te
.TH ras2tiff 1 "26 Mar 2004" "SunOS 5.11" "User Commands"
.SH "NAME"
ras2tiff \- create
a TIFF file from a Sun rasterfile
.SH "SYNOPSIS"
.PP
\fBras2tiff\fR [\fB\fIoptions\fR\fR] \fB\fIinput\&.ras\fR\fR \fB\fIoutput\&.tif\fR\fR
.SH "DESCRIPTION"
.PP
\fBras2tiff\fR 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 and Welch algorithm (Compression=5), and with
each strip no more than 8 kilobytes\&. These characteristics can be overridden
or explicitly specified with the options described below\&.
.PP
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,
the PhotometricInterpretation tag is set to 2 (RGB) if the depth is 24, or
to 1 (min-is-black) if the depth is not 24\&.
.SH "OPTIONS"
.PP
The following options are supported:
.sp
.ne 2
.mk
\fB-\fBc\fR\fR
.in +16n
.rt
Specify a compression
scheme to use when writing image data:
.sp
.sp
.ne 2
.mk
\fB-\fBc jpeg\fR\fR
.in +24n
.rt
Baseline
JPEG compression algorithm\&.
.sp
.sp 2
.in -24n
.sp
.ne 2
.mk
\fB-\fBc lzw\fR\fR
.in +24n
.rt
Lempel-Ziv
and Welch algorithm\&. This is the default algorithm\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBc none\fR\fR
.in +24n
.rt
No compression\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBc packbits\fR\fR
.in +24n
.rt
PackBits
compression algorithm\&.
.sp
.sp 1
.in -24n
.sp
.ne 2
.mk
\fB-\fBc zip\fR\fR
.in +24n
.rt
Deflate compression
algorithm\&.
.sp
.sp 1
.in -24n
.sp 0
.in -16n
.sp
.ne 2
.mk
\fB-\fBr\fR\fR
.in +16n
.rt
Write data with
a specified number of rows per strip\&. By default, the number of rows per strip
is selected so that each strip is approximately 8 kilobytes\&.
.sp
.sp 1
.in -16n
.SH "OPERANDS"
.PP
The following operands are supported:
.sp
.ne 2
.mk
\fB\fB\fIinput\&.ras\fR\fR\fR
.in +16n
.rt
The name of the input file that contains Sun rasterfile data\&.
.sp
.sp 1
.in -16n
.sp
.ne 2
.mk
\fB\fB\fIoutput\&.tif\fR\fR\fR
.in +16n
.rt
The name of the output file that contains TIFF data\&.
.sp
.sp 1
.in -16n
.SH "ATTRIBUTES"
.PP
See \fBattributes\fR(5)
for descriptions of the following attributes:
.sp
.TS
tab() allbox;
cw(2.750000i)| cw(2.750000i)
lw(2.750000i)| lw(2.750000i).
ATTRIBUTE TYPEATTRIBUTE VALUE
Availabilityimage/library/libtiff
Interface stabilityUncommitted
.TE
.sp
.SH "SEE ALSO"
.PP
\fBpal2rgb\fR(1), \fBtiffinfo\fR(1), \fBtiffcp\fR(1), \fBtiffmedian\fR(1), \fBlibtiff\fR(3)
.SH "NOTES"
.PP
Does not support all possible rasterfiles\&. In particular, \fBras2tiff\fR
does not support run-length encoded images\&.
.PP
Updated by Breda McColgan, Sun Microsystems Inc\&., 2004\&.
...\" created by instant / solbook-to-man, Thu 20 Mar 2014, 02:30
...\" LSARC 2003/085 libtiff, libjpeg, and libpng