1 <!-- Creator     : groff version 1.18.1 --> 
   2 <!-- CreationDate: Sat Feb 24 18:37:19 2007 --> 
   5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org"> 
   6 <meta name=
"Content-Style" content=
"text/css"> 
  11 <h1 align=center
>TIFF2PS
</h1> 
  12 <a href=
"#NAME">NAME
</a><br> 
  13 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br> 
  14 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br> 
  15 <a href=
"#OPTIONS">OPTIONS
</a><br> 
  16 <a href=
"#EXAMPLES">EXAMPLES
</a><br> 
  17 <a href=
"#BUGS">BUGS
</a><br> 
  18 <a href=
"#SEE ALSO">SEE ALSO
</a><br> 
  24 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  25        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  26 <tr valign=
"top" align=
"left"> 
  29 <p>tiff2ps 
− convert a 
<small>TIFF
</small> image to
 
  33 <a name=
"SYNOPSIS"></a> 
  36 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  37        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  38 <tr valign=
"top" align=
"left"> 
  41 <p><b>tiff2ps
</b> [ 
<i>options
</i> ] 
<i>input.tif
 
  45 <a name=
"DESCRIPTION"></a> 
  48 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  49        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  50 <tr valign=
"top" align=
"left"> 
  53 <p><i>tiff2ps
</i> reads 
<small>TIFF
</small> images and
 
  54 writes PostScript or Encapsulated PostScript (EPS) on the
 
  55 standard output. By default, 
<i>tiff2ps
</i> writes
 
  56 Encapsulated PostScript for the first image in the specified
 
  57 <small>TIFF
</small> image file.
</p> 
  59 <p>By default, 
<i>tiff2ps
</i> will generate PostScript that
 
  60 fills a printed area specified by the 
<small>TIFF
</small> 
  61 tags in the input file. If the file does not contain
 
  62 <i>XResolution
</i> or 
<i>YResolution
</i> tags, then the
 
  63 printed area is set according to the image dimensions. The
 
  64 <b>−w
</b> and 
<b>−h
</b> options (see below) can
 
  65 be used to set the dimensions of the printed area in inches;
 
  66 overriding any relevant 
<small>TIFF
</small> tags.
</p> 
  68 <p>The PostScript generated for 
<small>RGB,
</small> palette,
 
  69 and 
<small>CMYK
</small> images uses the 
<i>colorimage
</i> 
  70 operator. The PostScript generated for greyscale and bilevel
 
  71 images uses the 
<i>image
</i> operator. When the
 
  72 <i>colorimage
</i> operator is used, PostScript code to
 
  73 emulate this operator on older PostScript printers is also
 
  74 generated. Note that this emulation code can be very
 
  77 <p>Color images with associated alpha data are composited
 
  78 over a white background.
</p> 
  81 <a name=
"OPTIONS"></a> 
  84 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  85        cols=
"5" cellspacing=
"0" cellpadding=
"0"> 
  86 <tr valign=
"top" align=
"left"> 
  90 <p><b>−1</b></p> 
  95 <p>Generate PostScript Level 
1 (the default).
</p> 
  99 <tr valign=
"top" align=
"left"> 
 100 <td width=
"10%"></td> 
 103 <p><b>−2</b></p> 
 108 <p>Generate PostScript Level 
2.
</p> 
 112 <tr valign=
"top" align=
"left"> 
 113 <td width=
"10%"></td> 
 116 <p><b>−3</b></p> 
 121 <p>Generate PostScript Level 
3. It basically allows one to
 
 122 use the /flateDecode filter for ZIP compressed TIFF
 
 127 <tr valign=
"top" align=
"left"> 
 128 <td width=
"10%"></td> 
 131 <p><b>−a
</b></p> 
 136 <p>Generate output for all IFDs (pages) in the input
 
 141 <tr valign=
"top" align=
"left"> 
 142 <td width=
"10%"></td> 
 145 <p><b>−b
</b></p> 
 150 <p>Specify the bottom margin for the output (in inches).
 
 151 This does not affect the height of the printed image.
</p> 
 155 <tr valign=
"top" align=
"left"> 
 156 <td width=
"10%"></td> 
 159 <p><b>−c
</b></p> 
 164 <p>Center the image in the output. This option only shows
 
 165 an effect if both the 
<b>−w
</b> and the
 
 166 <b>−h
</b> option are given.
</p> 
 170 <tr valign=
"top" align=
"left"> 
 171 <td width=
"10%"></td> 
 174 <p><b>−d
</b></p> 
 179 <p>Set the initial 
<small>TIFF
</small> directory to the
 
 180 specified directory number. (NB: Directories are numbered
 
 181 starting at zero.) This option is useful for selecting
 
 182 individual pages in a multi-page (e.g. facsimile) file.
</p> 
 186 <tr valign=
"top" align=
"left"> 
 187 <td width=
"10%"></td> 
 190 <p><b>−e
</b></p> 
 195 <p>Force the generation of Encapsulated PostScript (implies
 
 196 <b>−z
</b>).
</p> 
 200 <tr valign=
"top" align=
"left"> 
 201 <td width=
"10%"></td> 
 204 <p><b>−h
</b></p> 
 209 <p>Specify the vertical size of the printed area (in
 
 214 <tr valign=
"top" align=
"left"> 
 215 <td width=
"10%"></td> 
 218 <p><b>−H
</b></p> 
 223 <p>Specify the maximum height of image (in inches). Images
 
 224 with larger sizes will be split in several pages. Option
 
 225 <b>−L
</b> may be used for specifying size of split
 
 226 images overlapping.
</p> 
 230 <tr valign=
"top" align=
"left"> 
 231 <td width=
"10%"></td> 
 234 <p><b>−i
</b></p> 
 239 <p>Enable/disable pixel interpolation. This option requires
 
 240 a single numeric value: zero to disable pixel interpolation
 
 241 and non-zero to enable. The default is enabled.
</p> 
 245 <tr valign=
"top" align=
"left"> 
 246 <td width=
"10%"></td> 
 249 <p><b>−L
</b></p> 
 254 <p>Specify the size of overlapping for split images (in
 
 255 inches). Used in conjunction with 
<b>−H
</b> 
 260 <tr valign=
"top" align=
"left"> 
 261 <td width=
"10%"></td> 
 264 <p><b>−l
</b></p> 
 269 <p>Specify the left margin for the output (in inches). This
 
 270 does not affect the width of the printed image.
</p> 
 274 <tr valign=
"top" align=
"left"> 
 275 <td width=
"10%"></td> 
 278 <p><b>−m
</b></p> 
 283 <p>Where possible render using the 
<i>imagemask
</i> 
 284 PostScript operator instead of the 
<i>image
</i> operator.
 
 285 When this option is specified 
<i>tiff2ps
</i> will use
 
 286 <i>imagemask
</i> for rendering 
1 bit deep images. If this
 
 287 option is not specified or if the image depth is greater
 
 288 than 
1 then the 
<i>image
</i> operator is used.
</p> 
 292 <tr valign=
"top" align=
"left"> 
 293 <td width=
"10%"></td> 
 296 <p><b>−o
</b></p> 
 301 <p>Set the initial 
<small>TIFF
</small> directory to the
 
 302 <small>IFD
</small> at the specified file offset. This option
 
 303 is useful for selecting thumbnail images and the like which
 
 304 are hidden using the 
<i>SubIFD
</i> tag.
</p> 
 308 <tr valign=
"top" align=
"left"> 
 309 <td width=
"10%"></td> 
 312 <p><b>−p
</b></p> 
 317 <p>Force the generation of (non-Encapsulated)
 
 322 <tr valign=
"top" align=
"left"> 
 323 <td width=
"10%"></td> 
 326 <p><b>−r
</b></p> 
 331 <p>Rotate image by 
180 degrees.
</p> 
 335 <tr valign=
"top" align=
"left"> 
 336 <td width=
"10%"></td> 
 339 <p><b>−s
</b></p> 
 344 <p>Generate output for a single IFD (page) in the input
 
 349 <tr valign=
"top" align=
"left"> 
 350 <td width=
"10%"></td> 
 353 <p><b>−w
</b></p> 
 358 <p>Specify the horizontal size of the printed area (in
 
 363 <tr valign=
"top" align=
"left"> 
 364 <td width=
"10%"></td> 
 367 <p><b>−x
</b></p> 
 372 <p>Override resolution units specified in the TIFF as
 
 377 <tr valign=
"top" align=
"left"> 
 378 <td width=
"10%"></td> 
 381 <p><b>−y
</b></p> 
 386 <p>Override resolution units specified in the TIFF as
 
 391 <tr valign=
"top" align=
"left"> 
 392 <td width=
"10%"></td> 
 395 <p><b>−z
</b></p> 
 400 <p>When generating PostScript Level 
2, data is scaled so
 
 401 that it does not image into the 
<i>deadzone
</i> on a page
 
 402 (the outer margin that the printing device is unable to
 
 403 mark). This option suppresses this behavior. When PostScript
 
 404 Level 
1 is generated, data is imaged to the entire printed
 
 405 page and this option has no affect.
</p> 
 410 <a name=
"EXAMPLES"></a> 
 413 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 414        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 415 <tr valign=
"top" align=
"left"> 
 418 <p>The following generates PostScript Level 
2 for all pages
 
 419 of a facsimile:
</p></td> 
 422 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 423        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 424 <tr valign=
"top" align=
"left"> 
 425 <td width=
"17%"></td> 
 427 <pre>tiff2ps 
−a2 fax.tif | lpr
 
 433 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 434        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 435 <tr valign=
"top" align=
"left"> 
 438 <p>Note also that if you have version 
2.6.1 or newer of
 
 439 Ghostscript then you can efficiently preview facsimile
 
 440 generated with the above command.
</p> 
 442 <p>To generate Encapsulated PostScript for a the image at
 
 443 directory 
2 of an image use:
</p></td> 
 446 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 447        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 448 <tr valign=
"top" align=
"left"> 
 449 <td width=
"17%"></td> 
 451 <pre>tiff2ps 
−d 
1 foo.tif
 
 457 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 458        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 459 <tr valign=
"top" align=
"left"> 
 462 <p>(Notice that directories are numbered starting at
 
 465 <p>If you have a long image, it may be split in several
 
 469 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 470        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 471 <tr valign=
"top" align=
"left"> 
 472 <td width=
"17%"></td> 
 474 <pre>tiff2ps 
−h11 
−w8.5 
−H14 
−L
.5 foo.tif 
> foo.ps
 
 480 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 481        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 482 <tr valign=
"top" align=
"left"> 
 485 <p>The page size is set to 
8.5x11 by 
<b>−w
</b> and
 
 486 <b>−h
</b> options. We will accept a small amount of
 
 487 vertical compression, so 
<b>−H
</b> set to 
14. Any
 
 488 pages between 
11 and 
14 inches will be fit onto one page.
 
 489 Pages longer than 
14 inches are cut off at 
11 and continued
 
 490 on the next page. The 
<b>−L
.5</b> option says to
 
 491 repeat a half inch on the next page (to improve
 
 498 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 499        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 500 <tr valign=
"top" align=
"left"> 
 503 <p>Because PostScript does not support the notion of a
 
 504 colormap, 
8-bit palette images produce 
24-bit PostScript
 
 505 images. This conversion results in output that is six times
 
 506 bigger than the original image and which takes a long time
 
 507 to send to a printer over a serial line. Matters are even
 
 508 worse for 
4-, 
2-, and 
1-bit palette images.
</p> 
 510 <p>Does not handle tiled images when generating PostScript
 
 514 <a name=
"SEE ALSO"></a> 
 517 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 518        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 519 <tr valign=
"top" align=
"left"> 
 522 <p><b>pal2rgb
</b>(
1), 
<b>tiffinfo
</b>(
1), 
<b>tiffcp
</b>(
1),
 
 523 <b>tiffgt
</b>(
1), 
<b>tiffmedian
</b>(
1), 
<b>tiff2bw
</b>(
1),
 
 524 <b>tiffsv
</b>(
1), 
<b>libtiff
</b>(
3)
</p> 
 526 <p>Libtiff library home page:
 
 527 <b>http://www.remotesensing.org/libtiff/
</b></p>