roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>TIFF2PS</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFF2PS

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
OPTIONS
roentgen b75cab
EXAMPLES
roentgen b75cab
BUGS
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiff2ps − convert a <small>TIFF</small> image to

roentgen b75cab
PostScript™

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiff2ps [ options ] input.tif

roentgen b75cab
...

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiff2ps reads <small>TIFF</small> images and

roentgen b75cab
writes PostScript or Encapsulated PostScript (EPS) on the
roentgen b75cab
standard output. By default, tiff2ps writes
roentgen b75cab
Encapsulated PostScript for the first image in the specified
roentgen b75cab
<small>TIFF</small> image file.

roentgen b75cab
roentgen b75cab

By default, tiff2ps will generate PostScript that

roentgen b75cab
fills a printed area specified by the <small>TIFF</small>
roentgen b75cab
tags in the input file. If the file does not contain
roentgen b75cab
XResolution or YResolution tags, then the
roentgen b75cab
printed area is set according to the image dimensions. The
roentgen b75cab
−w and −h options (see below) can
roentgen b75cab
be used to set the dimensions of the printed area in inches;
roentgen b75cab
overriding any relevant <small>TIFF</small> tags.

roentgen b75cab
roentgen b75cab

The PostScript generated for <small>RGB,</small> palette,

roentgen b75cab
and <small>CMYK</small> images uses the colorimage
roentgen b75cab
operator. The PostScript generated for greyscale and bilevel
roentgen b75cab
images uses the image operator. When the
roentgen b75cab
colorimage operator is used, PostScript code to
roentgen b75cab
emulate this operator on older PostScript printers is also
roentgen b75cab
generated. Note that this emulation code can be very
roentgen b75cab
slow.

roentgen b75cab
roentgen b75cab

Color images with associated alpha data are composited

roentgen b75cab
over a white background.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

OPTIONS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−1

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Generate PostScript Level 1 (the default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−2

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Generate PostScript Level 2.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−3

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Generate PostScript Level 3. It basically allows one to

roentgen b75cab
use the /flateDecode filter for ZIP compressed TIFF
roentgen b75cab
images.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−a

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Generate output for all IFDs (pages) in the input

roentgen b75cab
file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−b

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the bottom margin for the output (in inches).

roentgen b75cab
This does not affect the height of the printed image.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−c

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Center the image in the output. This option only shows

roentgen b75cab
an effect if both the −w and the
roentgen b75cab
−h option are given.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−d

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Set the initial <small>TIFF</small> directory to the

roentgen b75cab
specified directory number. (NB: Directories are numbered
roentgen b75cab
starting at zero.) This option is useful for selecting
roentgen b75cab
individual pages in a multi-page (e.g. facsimile) file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−e

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force the generation of Encapsulated PostScript (implies

roentgen b75cab
−z).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−h

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the vertical size of the printed area (in

roentgen b75cab
inches).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−H

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the maximum height of image (in inches). Images

roentgen b75cab
with larger sizes will be split in several pages. Option
roentgen b75cab
−L may be used for specifying size of split
roentgen b75cab
images overlapping.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−i

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Enable/disable pixel interpolation. This option requires

roentgen b75cab
a single numeric value: zero to disable pixel interpolation
roentgen b75cab
and non-zero to enable. The default is enabled.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−L

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the size of overlapping for split images (in

roentgen b75cab
inches). Used in conjunction with −H
roentgen b75cab
option.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−l

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the left margin for the output (in inches). This

roentgen b75cab
does not affect the width of the printed image.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−m

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Where possible render using the imagemask

roentgen b75cab
PostScript operator instead of the image operator.
roentgen b75cab
When this option is specified tiff2ps will use
roentgen b75cab
imagemask for rendering 1 bit deep images. If this
roentgen b75cab
option is not specified or if the image depth is greater
roentgen b75cab
than 1 then the image operator is used.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−o

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Set the initial <small>TIFF</small> directory to the

roentgen b75cab
<small>IFD</small> at the specified file offset. This option
roentgen b75cab
is useful for selecting thumbnail images and the like which
roentgen b75cab
are hidden using the SubIFD tag.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−p

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force the generation of (non-Encapsulated)

roentgen b75cab
PostScript.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−r

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Rotate image by 180 degrees.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−s

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Generate output for a single IFD (page) in the input

roentgen b75cab
file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−w

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the horizontal size of the printed area (in

roentgen b75cab
inches).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−x

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Override resolution units specified in the TIFF as

roentgen b75cab
centimeters.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−y

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Override resolution units specified in the TIFF as

roentgen b75cab
inches.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−z

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

When generating PostScript Level 2, data is scaled so

roentgen b75cab
that it does not image into the deadzone on a page
roentgen b75cab
(the outer margin that the printing device is unable to
roentgen b75cab
mark). This option suppresses this behavior. When PostScript
roentgen b75cab
Level 1 is generated, data is imaged to the entire printed
roentgen b75cab
page and this option has no affect.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

EXAMPLES

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The following generates PostScript Level 2 for all pages

roentgen b75cab
of a facsimile:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiff2ps −a2 fax.tif | lpr
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Note also that if you have version 2.6.1 or newer of

roentgen b75cab
Ghostscript then you can efficiently preview facsimile
roentgen b75cab
generated with the above command.

roentgen b75cab
roentgen b75cab

To generate Encapsulated PostScript for a the image at

roentgen b75cab
directory 2 of an image use:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiff2ps −d 1 foo.tif
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

(Notice that directories are numbered starting at

roentgen b75cab
zero.)

roentgen b75cab
roentgen b75cab

If you have a long image, it may be split in several

roentgen b75cab
pages:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiff2ps −h11 −w8.5 −H14 −L.5 foo.tif > foo.ps
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The page size is set to 8.5x11 by −w and

roentgen b75cab
−h options. We will accept a small amount of
roentgen b75cab
vertical compression, so −H set to 14. Any
roentgen b75cab
pages between 11 and 14 inches will be fit onto one page.
roentgen b75cab
Pages longer than 14 inches are cut off at 11 and continued
roentgen b75cab
on the next page. The −L.5 option says to
roentgen b75cab
repeat a half inch on the next page (to improve
roentgen b75cab
readability).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

BUGS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Because PostScript does not support the notion of a

roentgen b75cab
colormap, 8-bit palette images produce 24-bit PostScript
roentgen b75cab
images. This conversion results in output that is six times
roentgen b75cab
bigger than the original image and which takes a long time
roentgen b75cab
to send to a printer over a serial line. Matters are even
roentgen b75cab
worse for 4-, 2-, and 1-bit palette images.

roentgen b75cab
roentgen b75cab

Does not handle tiled images when generating PostScript

roentgen b75cab
Level I output.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

pal2rgb(1), tiffinfo(1), tiffcp(1),

roentgen b75cab
tiffgt(1), tiffmedian(1), tiff2bw(1),
roentgen b75cab
tiffsv(1), libtiff(3)

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab