OS Manuals

/usr/bin/raw2tiff

Provides support for the Tag Image File Format or TIFF

From tiff 4.7.2-r5 (os), captured 2026-11-05 by running raw2tiff --help (exit 0). permalink

/usr/bin/raw2tiff: invalid option -- '-'
LIBTIFF, Version 4.7.2
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.

Create a TIFF file from raw data

usage: raw2tiff [options] input.raw output.tif
where options are:
 -L		input data has LSB2MSB bit order (default)
 -M		input data has MSB2LSB bit order
 -r #		make each strip have no more than # rows
 -H #		size of input image file header in bytes (0 by default)
 -w #		width of input image in pixels
 -l #		length of input image in lines
 -b #		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

 -p photo	photometric interpretation (color space) of the input image
where photo may be:
 miniswhite	white color represented with 0 value
 minisblack	black color represented with 0 value (default)
 rgb		image has RGB color model
 cmyk		image has CMYK (separated) color model
 ycbcr		image has YCbCr color model
 cielab		image has CIE L*a*b color model
 icclab		image has ICC L*a*b color model
 itulab		image has ITU L*a*b color model

 -s		swap bytes fetched from input file

 -i config	type of samples interleaving in input image
where config may be:
 pixel		pixel interleaved data (default)
 band		band interleaved data

 -c lzw[:opts]	compress output with Lempel-Ziv & Welch encoding
    #  set predictor value
    For example, -c lzw:2 for LZW-encoded data with horizontal differencing
 -c zip[:opts]	compress output with deflate encoding
    #  set predictor value
 -c jpeg[:opts]	compress output with JPEG encoding
    #  set compression quality level (0-100, default 75)
    r  output color image as RGB rather than YCbCr
    For example, -c jpeg:r:50 for JPEG-encoded RGB data with 50% comp. quality
 -c packbits	compress output with packbits encoding
 -c none	use no compression algorithm on output

 -o out.tif	write output to out.tif
 -h		this help message
Options (14)
OptionDescriptionSource
-Linput data has LSB2MSB bit order (default)help
-Minput data has MSB2LSB bit orderhelp
-r #make each strip have no more than # rowshelp
-H #size of input image file header in bytes (0 by default)help
-w #width of input image in pixelshelp
-l #length of input image in lineshelp
-b #number of bands in input image (1 by default)help
-d data_typetype of samples in input imagehelp
-p photophotometric interpretation (color space) of the input imagehelp
-sswap bytes fetched from input filehelp
-i configtype of samples interleaving in input imagehelp
-c lzw[:optscompress output with Lempel-Ziv & Welch encoding # set predictor value For example, -c lzw:2 for LZW-encoded data with horizontal differencinghelp
-o out.tifwrite output to out.tifhelp
-hthis help messagehelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.