xref: /libtiff-4.0.7/html/tools.html (revision a2a1911b)
1cfa43016SBob Friesenhahn<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2cfa43016SBob Friesenhahn<html>
3cfa43016SBob Friesenhahn<head>
4cfa43016SBob Friesenhahn<meta name="generator" content=
5cfa43016SBob Friesenhahn"HTML Tidy for Solaris (vers 12 April 2005), see www.w3.org">
6cfa43016SBob Friesenhahn<title>TIFF Tools Overview</title>
7cfa43016SBob Friesenhahn</head>
8cfa43016SBob Friesenhahn<body bgcolor="white">
9cfa43016SBob Friesenhahn<h1><font face="Arial, Helvetica, Sans"><img src="images/quad.jpg"
10cfa43016SBob Friesenhahnwidth="144" height="108" align="left" border="1" hspace="6"> TIFF
11cfa43016SBob FriesenhahnTools Overview</font></h1>
12cfa43016SBob Friesenhahn<p>This software distribution comes with a small collection of
13cfa43016SBob Friesenhahnprograms for converting non-TIFF format images to TIFF and for
14*a2a1911bSAndrey Kiselevmanipulating and interrogating the contents of TIFF images. Several
15cfa43016SBob Friesenhahnof these tools are useful in their own right. Many of them however
16cfa43016SBob Friesenhahnare more intended to serve as programming examples for using the
17cfa43016SBob FriesenhahnTIFF library.</p>
18cfa43016SBob Friesenhahn<h3>Device-dependent Programs</h3>
19cfa43016SBob FriesenhahnThere are two device-dependent programs that serve as simple
20cfa43016SBob Friesenhahnexamples for writing programs to display and save TIFF images.
21cfa43016SBob Friesenhahn<table border cellpadding="3">
22cfa43016SBob Friesenhahn<tr>
23cfa43016SBob Friesenhahn<td valign="top" width="10%">
24cfa43016SBob Friesenhahn<tt>tiffgt&nbsp;&nbsp;&nbsp;&nbsp;</tt></td>
25cfa43016SBob Friesenhahn<td>Display the contents of one or more TIFF images using OpenGL.
26cfa43016SBob FriesenhahnThe software makes extensive use of the <tt>TIFFRGBAImage</tt>
27cfa43016SBob Friesenhahnfacilities described elsewhere.</td>
28cfa43016SBob Friesenhahn</tr>
29cfa43016SBob Friesenhahn<tr>
30cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffsv</tt></td>
31cfa43016SBob Friesenhahn<td>A program to save all or part of a screen dump on a Silicon
32cfa43016SBob FriesenhahnGraphics system. As for <tt>tiffgt</tt> this code, while written to
33cfa43016SBob Friesenhahnuse the IRIS GL, can be easily tailored to other devices.</td>
34cfa43016SBob Friesenhahn</tr>
35cfa43016SBob Friesenhahn</table>
36cfa43016SBob Friesenhahn<h3>Device-independent Programs</h3>
370ef31e1fSMike WellesThe remaining programs should be device-independent:
38cfa43016SBob Friesenhahn<table border cellpadding="3">
39cfa43016SBob Friesenhahn<tr>
40cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>bmp2tiff</tt></td>
41cfa43016SBob Friesenhahn<td>Convert BMP images to TIFF</td>
42cfa43016SBob Friesenhahn</tr>
43cfa43016SBob Friesenhahn<tr>
44cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>fax2ps</tt></td>
45cfa43016SBob Friesenhahn<td>Convert a Group 3- or Group 4- compressed TIFF to PostScript
46cfa43016SBob Friesenhahnthat is significantly more compressed than is generated by
47cfa43016SBob Friesenhahn<tt>tiff2ps</tt> (unless <tt>tiff2ps</tt> writes PS Level II)</td>
48cfa43016SBob Friesenhahn</tr>
49cfa43016SBob Friesenhahn<tr>
50cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>fax2tiff</tt></td>
51cfa43016SBob Friesenhahn<td>Convert raw Group 3 or Group 4 facsimile data to TIFF</td>
52cfa43016SBob Friesenhahn</tr>
53cfa43016SBob Friesenhahn<tr>
54cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>gif2tiff</tt></td>
55cfa43016SBob Friesenhahn<td>A quick hack that converts GIF 87a format images to TIFF</td>
56cfa43016SBob Friesenhahn</tr>
57cfa43016SBob Friesenhahn<tr>
58cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>pal2rgb</tt></td>
59cfa43016SBob Friesenhahn<td>Convert a Palette-style image to a full color RGB image by
60cfa43016SBob Friesenhahnapplying the colormap</td>
61cfa43016SBob Friesenhahn</tr>
62cfa43016SBob Friesenhahn<tr>
63cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>ppm2tiff</tt></td>
64cfa43016SBob Friesenhahn<td>A quick hack that converts PPM format images to TIFF</td>
65cfa43016SBob Friesenhahn</tr>
66cfa43016SBob Friesenhahn<tr>
67cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>ras2tiff</tt></td>
68cfa43016SBob Friesenhahn<td>A quick hack that converts Sun rasterfile format images to TIFF
69cfa43016SBob Friesenhahn-- it's less than complete</td>
70cfa43016SBob Friesenhahn</tr>
71cfa43016SBob Friesenhahn<tr>
72cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>raw2tiff</tt></td>
73cfa43016SBob Friesenhahn<td>Create a TIFF file from raw data</td>
74cfa43016SBob Friesenhahn</tr>
75cfa43016SBob Friesenhahn<tr>
76cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>rgb2ycbcr</tt></td>
77cfa43016SBob Friesenhahn<td>Convert an RGB, grayscale, or bilevel TIFF image to a YCbCr
78cfa43016SBob FriesenhahnTIFF image; it's mainly provided for testing</td>
79cfa43016SBob Friesenhahn</tr>
80cfa43016SBob Friesenhahn<tr>
81cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>sgi2tiff</tt></td>
82cfa43016SBob Friesenhahn<td>A program to convert SGI image files to TIFF. This program is
83cfa43016SBob Friesenhahnonly useful on SGI machines as it uses <tt>-limage</tt>.</td>
84cfa43016SBob Friesenhahn</tr>
85cfa43016SBob Friesenhahn<tr>
86cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>thumbnail</tt></td>
87cfa43016SBob Friesenhahn<td>Copy a bilevel TIFF to one that includes 8-bit greyscale
880ef31e1fSMike Welles"thumbnail images" for each page; it is provided as an example of
89cfa43016SBob Friesenhahnhow one might use the <tt>SubIFD</tt> tag (and the library support
90cfa43016SBob Friesenhahnfor it)</td>
91cfa43016SBob Friesenhahn</tr>
92cfa43016SBob Friesenhahn<tr>
93cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiff2bw</tt></td>
94cfa43016SBob Friesenhahn<td>A simple program to convert a color image to grayscale</td>
95cfa43016SBob Friesenhahn</tr>
96cfa43016SBob Friesenhahn<tr>
97cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiff2pdf</tt></td>
98cfa43016SBob Friesenhahn<td>Convert TIFF images to PDF</td>
99cfa43016SBob Friesenhahn</tr>
100cfa43016SBob Friesenhahn<tr>
101cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiff2ps</tt></td>
102cfa43016SBob Friesenhahn<td>Convert TIFF images to PostScript</td>
103cfa43016SBob Friesenhahn</tr>
104cfa43016SBob Friesenhahn<tr>
105cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiff2rgba</tt></td>
106cfa43016SBob Friesenhahn<td>Convert a TIFF image to RGBA color space</td>
107cfa43016SBob Friesenhahn</tr>
108cfa43016SBob Friesenhahn<tr>
109cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffcmp</tt></td>
110cfa43016SBob Friesenhahn<td>Compare the contents of two TIFF files (it does not check all
111cfa43016SBob Friesenhahnthe directory information, but does check all the data)</td>
112cfa43016SBob Friesenhahn</tr>
113cfa43016SBob Friesenhahn<tr>
114cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffcp</tt></td>
115cfa43016SBob Friesenhahn<td>Copy, concatenate, and convert TIFF images (e.g. switching from
116cfa43016SBob FriesenhahnCompression=5 to Compression=1)</td>
117cfa43016SBob Friesenhahn</tr>
118cfa43016SBob Friesenhahn<tr>
119cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffdither</tt></td>
120cfa43016SBob Friesenhahn<td>Dither a b&amp;w image into a bilevel image (suitable for use
121cfa43016SBob Friesenhahnin creating fax files)</td>
122cfa43016SBob Friesenhahn</tr>
123cfa43016SBob Friesenhahn<tr>
124cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffdump</tt></td>
125cfa43016SBob Friesenhahn<td>Display the verbatim contents of the TIFF directory in a file
126cfa43016SBob Friesenhahn(it's very useful for debugging bogus files that you may get from
127cfa43016SBob Friesenhahnsomeone that claims they support TIFF)</td>
128cfa43016SBob Friesenhahn</tr>
129cfa43016SBob Friesenhahn<tr>
130cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffinfo</tt></td>
131cfa43016SBob Friesenhahn<td>Display information about one or more TIFF files.</td>
132cfa43016SBob Friesenhahn</tr>
133cfa43016SBob Friesenhahn<tr>
134cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffmedian</tt></td>
135cfa43016SBob Friesenhahn<td>A version of Paul Heckbert's median cut program that reads an
136cfa43016SBob FriesenhahnRGB TIFF image, and creates a TIFF palette file as a result; it's
137cfa43016SBob Friesenhahnuseful for converting full-color RGB images to 8-bit color for your
138cfa43016SBob Friesenhahnfriends that have cheapo 8-bit framebuffers.</td>
139cfa43016SBob Friesenhahn</tr>
140cfa43016SBob Friesenhahn<tr>
141cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffset</tt></td>
142cfa43016SBob Friesenhahn<td>Set a field in a TIFF header</td>
143cfa43016SBob Friesenhahn</tr>
144cfa43016SBob Friesenhahn<tr>
145cfa43016SBob Friesenhahn<td valign="top" width="10%"><tt>tiffsplit</tt></td>
146cfa43016SBob Friesenhahn<td>Create one or more single-image files from a (possibly)
147cfa43016SBob Friesenhahnmulti-image file</td>
148cfa43016SBob Friesenhahn</tr>
149cfa43016SBob Friesenhahn</table>
150cfa43016SBob Friesenhahn<p>Check out the manual pages for details about the above
151cfa43016SBob Friesenhahnprograms.</p>
152cfa43016SBob Friesenhahn<hr>
153*a2a1911bSAndrey KiselevLast updated: $Date: 2006-04-20 11:48:42 $
154cfa43016SBob Friesenhahn</body>
155cfa43016SBob Friesenhahn</html>
156