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       -d     Set the initial TIFF directory to the specified  directory  num‐
53              ber.   (NB:  Directories  are  numbered starting at zero.)  This
54              option is useful for selecting individual pages in a  multi-page
55              (e.g. facsimile) file.
56
57       -D     Enable duplex printing (two pages per sheet of paper)
58
59       -e     Force the generation of Encapsulated PostScript (implies -z).
60
61       -h     Specify the vertical size of the printed area (in inches).
62
63       -H     Specify  the  maximum  height  of image (in inches). Images with
64              larger sizes will be split in several pages. Option  -L  may  be
65              used for specifying size of split images overlapping.
66
67       -W     Specify  the  maximum  width  of  image (in inches). Images with
68              larger sizes will be split in several pages. Options -L  and  -W
69              are mutually exclusive.
70
71       -i     Enable/disable pixel interpolation.  This option requires a sin‐
72              gle numeric value: zero to disable pixel interpolation and  non-
73              zero to enable.  The default is enabled.
74
75       -L     Specify  the  size  of overlapping for split images (in inches).
76              Used in conjunction with -H option and -W option.
77
78       -l     Specify the left margin for the output (in  inches).  This  does
79              not affect the width of the printed image.
80
81       -m     Where  possible  render  using the imagemask PostScript operator
82              instead of the image operator.  When this  option  is  specified
83              tiff2ps  will use imagemask for rendering 1 bit deep images.  If
84              this option is not specified or if the image  depth  is  greater
85              than 1 then the image operator is used.
86
87       -o     Set  the initial TIFF directory to the IFD at the specified file
88              offset.  This option is useful for  selecting  thumbnail  images
89              and the like which are hidden using the SubIFD tag.
90
91       -O     Write  PostScript  to  specified file instead of standard output
92              Set the initial
93
94       -p     Force the generation of (non-Encapsulated) PostScript.
95
96       -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       -x     Override resolution units specified in the TIFF as centimeters.
115
116       -y     Override resolution units specified in the TIFF as inches.
117
118       -z     When  generating  PostScript  Level 2, data is scaled so that it
119              does not image into the deadzone on a  page  (the  outer  margin
120              that  the  printing device is unable to mark).  This option sup‐
121              presses this behavior.  When PostScript Level  1  is  generated,
122              data is imaged to the entire printed page and this option has no
123              affect.
124

EXAMPLES

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

BUGS

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

SEE ALSO

156       pal2rgb(1),   tiffinfo(1),   tiffcp(1),    tiffgt(1),    tiffmedian(1),
157       tiff2bw(1), tiffsv(1), libtiff(3)
158
159       Libtiff library home page: http://www.remotesensing.org/libtiff/
160
161
162
163libtiff                        November 2, 2005                     TIFF2PS(1)
Impressum