<!-- Creator : groff version 1.18.1 --><!-- CreationDate: Fri Jul 13 17:43:19 2007 --><html><head><meta name="generator" content="groff -Thtml, see www.gnu.org"><meta name="Content-Style" content="text/css"><title>TIFF2PS</title></head><body><h1 align=center>TIFF2PS</h1><a href="#NAME">NAME</a><br><a href="#SYNOPSIS">SYNOPSIS</a><br><a href="#DESCRIPTION">DESCRIPTION</a><br><a href="#OPTIONS">OPTIONS</a><br><a href="#EXAMPLES">EXAMPLES</a><br><a href="#BUGS">BUGS</a><br><a href="#SEE ALSO">SEE ALSO</a><br><hr><a name="NAME"></a><h2>NAME</h2><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p>tiff2ps − convert a <small>TIFF</small> image toPostScript™</p></td></table><a name="SYNOPSIS"></a><h2>SYNOPSIS</h2><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p><b>tiff2ps</b> [ <i>options</i> ] <i>input.tif...</i></p></td></table><a name="DESCRIPTION"></a><h2>DESCRIPTION</h2><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p><i>tiff2ps</i> reads <small>TIFF</small> images andwrites PostScript or Encapsulated PostScript (EPS) on thestandard output. By default, <i>tiff2ps</i> writesEncapsulated PostScript for the first image in the specified<small>TIFF</small> image file.</p><!-- INDENTATION --><p>By default, <i>tiff2ps</i> will generate PostScript thatfills a printed area specified by the <small>TIFF</small>tags in the input file. If the file does not contain<i>XResolution</i> or <i>YResolution</i> tags, then theprinted area is set according to the image dimensions. The<b>−w</b> and <b>−h</b> options (see below) canbe used to set the dimensions of the printed area in inches;overriding any relevant <small>TIFF</small> tags.</p><!-- INDENTATION --><p>The PostScript generated for <small>RGB,</small> palette,and <small>CMYK</small> images uses the <i>colorimage</i>operator. The PostScript generated for greyscale and bilevelimages uses the <i>image</i> operator. When the<i>colorimage</i> operator is used, PostScript code toemulate this operator on older PostScript printers is alsogenerated. Note that this emulation code can be veryslow.</p><!-- INDENTATION --><p>Color images with associated alpha data are compositedover a white background.</p></td></table><a name="OPTIONS"></a><h2>OPTIONS</h2><!-- TABS --><table width="100%" border=0 rules="none" frame="void" cols="5" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−1</b></p></td><td width="5%"></td><td width="80%"><p>Generate PostScript Level 1 (the default).</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−2</b></p></td><td width="5%"></td><td width="80%"><p>Generate PostScript Level 2.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−3</b></p></td><td width="5%"></td><td width="80%"><p>Generate PostScript Level 3. It basically allows one touse the /flateDecode filter for ZIP compressed TIFFimages.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−a</b></p></td><td width="5%"></td><td width="80%"><p>Generate output for all IFDs (pages) in the inputfile.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−b</b></p></td><td width="5%"></td><td width="80%"><p>Specify the bottom margin for the output (in inches).This does not affect the height of the printed image.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−c</b></p></td><td width="5%"></td><td width="80%"><p>Center the image in the output. This option only showsan effect if both the <b>−w</b> and the<b>−h</b> option are given.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−d</b></p></td><td width="5%"></td><td width="80%"><p>Set the initial <small>TIFF</small> directory to thespecified directory number. (NB: Directories are numberedstarting at zero.) This option is useful for selectingindividual pages in a multi-page (e.g. facsimile) file.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−e</b></p></td><td width="5%"></td><td width="80%"><p>Force the generation of Encapsulated PostScript (implies<b>−z</b>).</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−h</b></p></td><td width="5%"></td><td width="80%"><p>Specify the vertical size of the printed area (ininches).</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−H</b></p></td><td width="5%"></td><td width="80%"><p>Specify the maximum height of image (in inches). Imageswith larger sizes will be split in several pages. Option<b>−L</b> may be used for specifying size of splitimages overlapping.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−i</b></p></td><td width="5%"></td><td width="80%"><p>Enable/disable pixel interpolation. This option requiresa single numeric value: zero to disable pixel interpolationand non-zero to enable. The default is enabled.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−L</b></p></td><td width="5%"></td><td width="80%"><p>Specify the size of overlapping for split images (ininches). Used in conjunction with <b>−H</b>option.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−l</b></p></td><td width="5%"></td><td width="80%"><p>Specify the left margin for the output (in inches). Thisdoes not affect the width of the printed image.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−m</b></p></td><td width="5%"></td><td width="80%"><p>Where possible render using the <i>imagemask</i>PostScript operator instead of the <i>image</i> operator.When this option is specified <i>tiff2ps</i> will use<i>imagemask</i> for rendering 1 bit deep images. If thisoption is not specified or if the image depth is greaterthan 1 then the <i>image</i> operator is used.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−o</b></p></td><td width="5%"></td><td width="80%"><p>Set the initial <small>TIFF</small> directory to the<small>IFD</small> at the specified file offset. This optionis useful for selecting thumbnail images and the like whichare hidden using the <i>SubIFD</i> tag.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−p</b></p></td><td width="5%"></td><td width="80%"><p>Force the generation of (non-Encapsulated)PostScript.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−r</b></p></td><td width="5%"></td><td width="80%"><p>Rotate image by 180 degrees.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−s</b></p></td><td width="5%"></td><td width="80%"><p>Generate output for a single IFD (page) in the inputfile.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−w</b></p></td><td width="5%"></td><td width="80%"><p>Specify the horizontal size of the printed area (ininches).</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−x</b></p></td><td width="5%"></td><td width="80%"><p>Override resolution units specified in the TIFF ascentimeters.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−y</b></p></td><td width="5%"></td><td width="80%"><p>Override resolution units specified in the TIFF asinches.</p></td><td width="0%"></td><tr valign="top" align="left"><td width="10%"></td><td width="3%"><p><b>−z</b></p></td><td width="5%"></td><td width="80%"><p>When generating PostScript Level 2, data is scaled sothat it does not image into the <i>deadzone</i> on a page(the outer margin that the printing device is unable tomark). This option suppresses this behavior. When PostScriptLevel 1 is generated, data is imaged to the entire printedpage and this option has no affect.</p></td><td width="0%"></td></table><a name="EXAMPLES"></a><h2>EXAMPLES</h2><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p>The following generates PostScript Level 2 for all pagesof a facsimile:</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="17%"></td><td width="82%"><pre>tiff2ps −a2 fax.tif | lpr</pre></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p>Note also that if you have version 2.6.1 or newer ofGhostscript then you can efficiently preview facsimilegenerated with the above command.</p><!-- INDENTATION --><p>To generate Encapsulated PostScript for a the image atdirectory 2 of an image use:</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="17%"></td><td width="82%"><pre>tiff2ps −d 1 foo.tif</pre></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p>(Notice that directories are numbered starting atzero.)</p><!-- INDENTATION --><p>If you have a long image, it may be split in severalpages:</p></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="17%"></td><td width="82%"><pre>tiff2ps −h11 −w8.5 −H14 −L.5 foo.tif > foo.ps</pre></td></table><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p>The page size is set to 8.5x11 by <b>−w</b> and<b>−h</b> options. We will accept a small amount ofvertical compression, so <b>−H</b> set to 14. Anypages between 11 and 14 inches will be fit onto one page.Pages longer than 14 inches are cut off at 11 and continuedon the next page. The <b>−L.5</b> option says torepeat a half inch on the next page (to improvereadability).</p></td></table><a name="BUGS"></a><h2>BUGS</h2><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p>Because PostScript does not support the notion of acolormap, 8-bit palette images produce 24-bit PostScriptimages. This conversion results in output that is six timesbigger than the original image and which takes a long timeto send to a printer over a serial line. Matters are evenworse for 4-, 2-, and 1-bit palette images.</p><!-- INDENTATION --><p>Does not handle tiled images when generating PostScriptLevel I output.</p></td></table><a name="SEE ALSO"></a><h2>SEE ALSO</h2><!-- INDENTATION --><table width="100%" border=0 rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="8%"></td><td width="91%"><p><b>pal2rgb</b>(1), <b>tiffinfo</b>(1), <b>tiffcp</b>(1),<b>tiffgt</b>(1), <b>tiffmedian</b>(1), <b>tiff2bw</b>(1),<b>tiffsv</b>(1), <b>libtiff</b>(3)</p><!-- INDENTATION --><p>Libtiff library home page:<b>http://www.remotesensing.org/libtiff/</b></p></td></table><hr></body></html>