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

NAME

6       tiff2ps - convert a TIFF image to PostScript™
7

SYNOPSIS

9       tiff2ps [ options ] input.tif ...
10

DESCRIPTION

12       tiff2ps  reads  TIFF images and writes PostScript or Encapsulated Post‐
13       Script (EPS) on the standard output.  By default, tiff2ps writes Encap‐
14       sulated  PostScript  for  the  first  image in the specified TIFF image
15       file.
16
17       By default, tiff2ps will generate PostScript that fills a printed  area
18       specified  by  the  TIFF  tags in the input file.  If the file does not
19       contain XResolution or YResolution tags, then the printed area  is  set
20       according  to  the image dimensions.  The -w and -h options (see below)
21       can be used to set the dimensions of the printed area in inches;  over‐
22       riding any relevant TIFF tags.
23
24       The  PostScript  generated  for  RGB, palette, and CMYK images uses the
25       colorimage  operator.   The  PostScript  generated  for  greyscale  and
26       bilevel  images  uses the image operator.  When the colorimage operator
27       is used, PostScript code to emulate this operator on  older  PostScript
28       printers  is also generated.  Note that this emulation code can be very
29       slow.
30
31       Color images with associated alpha data are  composited  over  a  white
32       background.
33

OPTIONS

35       -1     Generate PostScript Level 1 (the default).
36
37       -2     Generate PostScript Level 2.
38
39       -3     Generate  PostScript Level 3. It basically allows one to use the
40              /flateDecode filter for ZIP compressed TIFF images.
41
42       -8     Disable use of ASCII85 encoding with PostScript Level 2/3.
43
44       -a     Generate output for all IFDs (pages) in the input file.
45
46       -b     Specify the bottom margin for the output (in inches). This  does
47              not affect the height of the printed image.
48
49       -c     Center the image in the output. This option only shows an effect
50              if both the -w and the -h option are given.
51
52       -C     Specify the document creator name.
53
54       -d     Set the initial TIFF directory to the specified  directory  num‐
55              ber.  (NB: Directories are numbered starting at zero.)  This op‐
56              tion is useful for selecting individual pages  in  a  multi-page
57              (e.g. facsimile) file.
58
59       -D     Enable duplex printing (two pages per sheet of paper).
60
61       -e     Force the generation of Encapsulated PostScript (implies -z).
62
63       -h     Specify the vertical size of the printed area (in inches).
64
65       -H     Specify  the  maximum  height  of image (in inches). Images with
66              larger sizes will be split in several pages. Option  -L  may  be
67              used  for  specifying  size of split images overlapping.  -i En‐
68              able/disable pixel interpolation.  This option requires a single
69              numeric  value: zero to disable pixel interpolation and non-zero
70              to enable.  The default is enabled.
71
72       -L     Specify the size of overlapping for split  images  (in  inches).
73              Used in conjunction with -H and -W options.
74
75       -l     Specify  the  left  margin for the output (in inches). This does
76              not affect the width of the printed image.
77
78       -M size
79              Set maximum memory allocation size  (in  MiB).  The  default  is
80              256MiB.  Set to 0 to disable the limit.
81
82       -m     Where  possible  render  using the imagemask PostScript operator
83              instead of the image operator.  When this  option  is  specified
84              tiff2ps  will use imagemask for rendering 1 bit deep images.  If
85              this option is not specified or if the image  depth  is  greater
86              than 1 then the image operator is used.
87
88       -o     Set  the initial TIFF directory to the IFD at the specified file
89              offset.  This option is useful for  selecting  thumbnail  images
90              and the like which are hidden using the SubIFD tag.
91
92       -O     Write PostScript to specified file instead of standard output.
93
94       -p     Force the generation of (non-Encapsulated) PostScript.
95
96       -P L|P Set  optional  PageOrientation  DSC comment to Landscape or Por‐
97              trait.
98
99       -r 90|180|270|auto
100              Rotate image by 90, 180, 270 degrees or auto.   Auto  picks  the
101              best  fit for the image on the specified paper size (eg portrait
102              or landscape) if -h or -w is specified. Rotation is  in  degrees
103              counterclockwise.  Auto  rotates 90 degrees ccw to produce land‐
104              scape.
105
106       -s     Generate output for a single IFD (page) in the input file.
107
108       -t     Specify the document title string.
109
110       -T     Print pages for top edge binding.
111
112       -w     Specify the horizontal size of the printed area (in inches).
113
114       -W     Specify the maximum width of  image  (in  inches).  Images  with
115              larger  sizes  will be split in several pages. Options -L and -W
116              are mutually exclusive.
117
118       -x     Override resolution units specified in the TIFF as centimeters.
119
120       -y     Override resolution units specified in the TIFF as inches.
121
122       -z     When generating PostScript Level 2, data is scaled  so  that  it
123              does  not  image  into  the deadzone on a page (the outer margin
124              that the printing device is unable to mark).  This  option  sup‐
125              presses  this  behavior.   When PostScript Level 1 is generated,
126              data is imaged to the entire printed page and this option has no
127              affect.
128

EXAMPLES

130       The  following  generates PostScript Level 2 for all pages of a facsim‐
131       ile:
132              tiff2ps -a2 fax.tif | lpr
133       Note also that if you have version 2.6.1 or newer of  Ghostscript  then
134       you can efficiently preview facsimile generated with the above command.
135
136       To  generate  Encapsulated PostScript for a the image at directory 2 of
137       an image use:
138              tiff2ps -d 1 foo.tif
139       (Notice that directories are numbered starting at zero.)
140
141       If you have a long image, it may be split in several pages:
142              tiff2ps -h11 -w8.5 -H14 -L.5 foo.tif > foo.ps
143       The page size is set to 8.5x11 by -w and -h options. We will  accept  a
144       small  amount  of  vertical compression, so -H set to 14. Any pages be‐
145       tween 11 and 14 inches will be fit onto one page.  Pages longer than 14
146       inches  are  cut off at 11 and continued on the next page. The -L.5 op‐
147       tion says to repeat a half inch on the next page (to improve  readabil‐
148       ity).
149

BUGS

151       Because  PostScript  does  not  support the notion of a colormap, 8-bit
152       palette images produce 24-bit PostScript images.  This  conversion  re‐
153       sults  in  output  that is six times bigger than the original image and
154       which takes a long time to send to a printer over a serial line.   Mat‐
155       ters are even worse for 4-, 2-, and 1-bit palette images.
156
157       Does not handle tiled images when generating PostScript Level I output.
158

SEE ALSO

160       pal2rgb(1),    tiffinfo(1),    tiffcp(1),   tiffgt(1),   tiffmedian(1),
161       tiff2bw(1), tiffsv(1), libtiff(3)
162
163       Libtiff library home page: http://www.simplesystems.org/libtiff/
164
165
166
167libtiff                        November 2, 2005                     TIFF2PS(1)
Impressum