'\" te .TH tiff2bw 1 "26 Mar 2004" "SunOS 5.11" "User Commands" .SH "NAME" tiff2bw \- convert a color TIFF image to grayscale .SH "SYNOPSIS" .PP \fBtiff2bw\fR [\fB\fIoptions\fR\fR] \fB\fIinput\&.tif\fR\fR \fB\fIoutput\&.tif\fR\fR .SH "DESCRIPTION" .PP \fBtiff2bw\fR converts an RGB or palette color TIFF image to a grayscale image by combining percentages of the red, green, and blue channels\&. By default, output samples are created by taking 28% of the red channel, 59% of the green channel, and 11% of the blue channel\&. To alter these percentages, use the -\fBR\fR\&. -\fBG\fR, and -\fBB\fR options\&. .SH "OPTIONS" .PP The following options are supported: .sp .ne 2 .mk \fB-\fBB\fR\fR .in +16n .rt Specify the percentage of the blue channel to use\&. The default value is 11\&. .sp .sp 1 .in -16n .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 g3\fR\fR .in +24n .rt CCITT Group 3 compression algorithm\&. .sp .sp 2 .in -24n .sp .ne 2 .mk \fB-\fBc g4\fR\fR .in +24n .rt CCITT Group 4 compression algorithm\&. .sp .sp 1 .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-\fBG\fR\fR .in +16n .rt Specify the percentage of the green channel to use\&. The default value is 59\&. .sp .sp 1 .in -16n .sp .ne 2 .mk \fB-\fBR\fR\fR .in +16n .rt Specify the percentage of the red channel to use\&. The default value is 28\&. .sp .sp 1 .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\&.tif\fR\fR\fR .in +16n .rt The name of the input TIFF file\&. .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\&. .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 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