1TIFF2PS(1) General Commands Manual TIFF2PS(1)
2
3
4
6 tiff2ps - convert a TIFF image to PostScript™
7
9 tiff2ps [ options ] input.tif ...
10
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
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
56 option 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
68 Enable/disable pixel interpolation. This option requires a sin‐
69 gle numeric value: zero to disable pixel interpolation and non-
70 zero 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 Where possible render using the imagemask PostScript operator
79 instead of the image operator. When this option is specified
80 tiff2ps will use imagemask for rendering 1 bit deep images. If
81 this option is not specified or if the image depth is greater
82 than 1 then the image operator is used.
83
84 -o Set the initial TIFF directory to the IFD at the specified file
85 offset. This option is useful for selecting thumbnail images
86 and the like which are hidden using the SubIFD tag.
87
88 -O Write PostScript to specified file instead of standard output.
89
90 -p Force the generation of (non-Encapsulated) PostScript.
91
92 -P L|P Set optional PageOrientation DSC comment to Landscape or Por‐
93 trait.
94
95 -r 90|180|270|auto
96 Rotate image by 90, 180, 270 degrees or auto. Auto picks the
97 best fit for the image on the specified paper size (eg portrait
98 or landscape) if -h or -w is specified. Rotation is in degrees
99 counterclockwise. Auto rotates 90 degrees ccw to produce land‐
100 scape.
101
102 -s Generate output for a single IFD (page) in the input file.
103
104 -t Specify the document title string.
105
106 -T Print pages for top edge binding.
107
108 -w Specify the horizontal size of the printed area (in inches).
109
110 -W Specify the maximum width of image (in inches). Images with
111 larger sizes will be split in several pages. Options -L and -W
112 are mutually exclusive.
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
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
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
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.simplesystems.org/libtiff/
160
161
162
163libtiff November 2, 2005 TIFF2PS(1)