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