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 -a Generate output for all IFDs (pages) in the input file.
43
44 -b Specify the bottom margin for the output (in inches). This does
45 not affect the height of the printed image.
46
47 -c Center the image in the output. This option only shows an effect
48 if both the -w and the -h option are given.
49
50 -d Set the initial TIFF directory to the specified directory num‐
51 ber. (NB: Directories are numbered starting at zero.) This
52 option is useful for selecting individual pages in a multi-page
53 (e.g. facsimile) file.
54
55 -e Force the generation of Encapsulated PostScript (implies -z).
56
57 -h Specify the vertical size of the printed area (in inches).
58
59 -H Specify the maximum height of image (in inches). Images with
60 larger sizes will be split in several pages. Option -L may be
61 used for specifying size of split images overlapping.
62
63 -W Specify the maximum width of image (in inches). Images with
64 larger sizes will be split in several pages. Options -L and -W
65 are mutually exclusive. -i Enable/disable pixel interpolation.
66 This option requires a single numeric value: zero to disable
67 pixel interpolation and non-zero to enable. The default is
68 enabled.
69
70 -L Specify the size of overlapping for split images (in inches).
71 Used in conjunction with -H option.
72
73 -l Specify the left margin for the output (in inches). This does
74 not affect the width of the printed image.
75
76 -m Where possible render using the imagemask PostScript operator
77 instead of the image operator. When this option is specified
78 tiff2ps will use imagemask for rendering 1 bit deep images. If
79 this option is not specified or if the image depth is greater
80 than 1 then the image operator is used.
81
82 -o Set the initial TIFF directory to the IFD at the specified file
83 offset. This option is useful for selecting thumbnail images
84 and the like which are hidden using the SubIFD tag.
85
86 -p Force the generation of (non-Encapsulated) PostScript.
87
88 -r Rotate image by 180 degrees.
89
90 -s Generate output for a single IFD (page) in the input file.
91
92 -w Specify the horizontal size of the printed area (in inches).
93
94 -x Override resolution units specified in the TIFF as centimeters.
95
96 -y Override resolution units specified in the TIFF as inches.
97
98 -z When generating PostScript Level 2, data is scaled so that it
99 does not image into the deadzone on a page (the outer margin
100 that the printing device is unable to mark). This option sup‐
101 presses this behavior. When PostScript Level 1 is generated,
102 data is imaged to the entire printed page and this option has no
103 affect.
104
106 The following generates PostScript Level 2 for all pages of a facsim‐
107 ile:
108 tiff2ps -a2 fax.tif | lpr
109 Note also that if you have version 2.6.1 or newer of Ghostscript then
110 you can efficiently preview facsimile generated with the above command.
111
112 To generate Encapsulated PostScript for a the image at directory 2 of
113 an image use:
114 tiff2ps -d 1 foo.tif
115 (Notice that directories are numbered starting at zero.)
116
117 If you have a long image, it may be split in several pages:
118 tiff2ps -h11 -w8.5 -H14 -L.5 foo.tif > foo.ps
119 The page size is set to 8.5x11 by -w and -h options. We will accept a
120 small amount of vertical compression, so -H set to 14. Any pages
121 between 11 and 14 inches will be fit onto one page. Pages longer than
122 14 inches are cut off at 11 and continued on the next page. The -L.5
123 option says to repeat a half inch on the next page (to improve read‐
124 ability).
125
127 Because PostScript does not support the notion of a colormap, 8-bit
128 palette images produce 24-bit PostScript images. This conversion
129 results in output that is six times bigger than the original image and
130 which takes a long time to send to a printer over a serial line. Mat‐
131 ters are even worse for 4-, 2-, and 1-bit palette images.
132
133 Does not handle tiled images when generating PostScript Level I output.
134
136 pal2rgb(1), tiffinfo(1), tiffcp(1), tiffgt(1), tiffmedian(1),
137 tiff2bw(1), tiffsv(1), libtiff(3)
138
139 Libtiff library home page: http://www.remotesensing.org/libtiff/
140
141
142
143libtiff November 2, 2005 TIFF2PS(1)