xref: /libtiff-4.0.7/html/tools.html (revision dcb05556)
1<HTML>
2<HEAD>
3<TITLE>
4TIFF Tools Overview
5</TITLE>
6</HEAD>
7
8<H1>
9<IMG SRC=images/quad.jpg WIDTH=144 HEIGHT=108 ALIGN=left BORDER=1 HSPACE=6>
10TIFF Tools Overview
11</H1>
12
13<P>
14This software distribution comes with a small collection of programs
15for converting non-TIFF format images to TIFF and for manipulating
16and interogating the contents of TIFF images.
17Several of these tools are useful in their own right.
18Many of them however are more intended to serve as programming
19examples for using the TIFF library.
20
21<H3>Device-dependent Programs</H3>
22
23There are two device-dependent programs that serve as simple examples
24for writing programs to display and save TIFF images.
25
26
27<P>
28<TABLE BORDER CELLPADDING=3>
29
30<TR>
31<TD valign=top WIDTH=10%><TT>tiffgt&nbsp;&nbsp;&nbsp;&nbsp;</TT></TD>
32<TD>Display the contents of one or
33more TIFF images on a Silicon Graphics system using
34the Silicon Graphics IRIS GL.
35The software makes extensive use of the <TT>TIFFRGBAImage</TT>
36facilities described elsewhere.</TD>
37</TR>
38
39<TR>
40<TD valign=top WIDTH=10%><TT>tiffsv</TT></TD>
41<TD>A program to save all or part of a screen dump on a Silicon
42Graphics system.
43As for <TT>tiffgt</TT> this code, while written to use the IRIS GL,
44can be easily tailored to other devices.</TD>
45</TR>
46
47</TABLE>
48
49<H3>Device-independent Programs</H3>
50
51The remaining programs should be device-independent:
52
53<P>
54<TABLE BORDER CELLPADDING=3>
55
56<TR>
57<TD VALIGN=top WIDTH=10%><TT>tiffinfo</TT></TD>
58<TD>Display information about one or more TIFF files.</TD>
59</TR>
60
61<TR>
62<TD VALIGN=top WIDTH=10%><TT>tiffdump</TT></TD>
63<TD>Display the verbatim contents of the TIFF directory in a
64  file (it's very useful for debugging bogus files that you may get from
65  someone that claims they support TIFF)</TD>
66</TR>
67
68<TR>
69<TD VALIGN=top WIDTH=10%><TT>tiffcp</TT></TD>
70<TD>Copy, concatenate, and convert TIFF images (e.g.
71  switching from Compression=5 to Compression=1)</TD>
72</TR>
73
74<TR>
75<TD VALIGN=top WIDTH=10%><TT>tiff2ps</TT></TD>
76<TD>Convert TIFF images to PostScript</TD>
77</TR>
78
79<TR>
80<TD VALIGN=top WIDTH=10%><TT>tiffcmp</TT></TD>
81<TD>Compare the contents of two TIFF files (it does
82  not check all the directory information, but does check all the data)</TD>
83</TR>
84
85<TR>
86<TD VALIGN=top WIDTH=10%><TT>tiff2bw</TT></TD>
87<TD>A simple program to convert a color image to grayscale</TD>
88</TR>
89
90<TR>
91<TD VALIGN=top WIDTH=10%><TT>ras2tiff</TT></TD>
92<TD>A quick hack that converts Sun rasterfile format images to
93  TIFF -- it's less than complete</TD>
94</TR>
95
96<TR>
97<TD VALIGN=top WIDTH=10%><TT>rgb2ycbcr</TT></TD>
98<TD>Convert an RGB, grayscale, or bilevel TIFF image to a
99  YCbCr TIFF image; it's mainly provided for testing</TD>
100</TR>
101
102<TR>
103<TD VALIGN=top WIDTH=10%><TT>gif2tiff</TT></TD>
104<TD>A quick hack that converts GIF 87a format images to TIFF</TD>
105</TR>
106
107<TR>
108<TD VALIGN=top WIDTH=10%><TT>ppm2tiff</TT></TD>
109<TD>A quick hack that converts PPM format images to TIFF</TD>
110</TR>
111
112<TR>
113<TD VALIGN=top WIDTH=10%><TT>fax2tiff</TT></TD>
114<TD>Convert raw Group 3 or Group 4 facsimile data to TIFF</TD>
115</TR>
116
117<TR>
118<TD VALIGN=top WIDTH=10%><TT>pal2rgb</TT></TD>
119<TD>Convert a Palette-style image to a full color RGB image by
120  applying the colormap</TD>
121</TR>
122
123<TR>
124<TD VALIGN=top WIDTH=10%><TT>tiffdither</TT></TD>
125<TD>Dither a b&w image into a bilevel image (suitable for
126  use in creating fax files)</TD>
127</TR>
128
129<TR>
130<TD VALIGN=top WIDTH=10%><TT>tiffsplit</TT></TD>
131<TD>Create one or more single-image files from a (possibly)
132  multi-image file</TD>
133</TR>
134
135<TR>
136<TD VALIGN=top WIDTH=10%><TT>fax2ps</TT></TD>
137<TD>Convert a Group 3- or Group 4- compressed TIFF to PostScript
138  that is significantly more compressed than is generated by <TT>tiff2ps</TT>
139  (unless <TT>tiff2ps</TT> writes PS Level II)</TD>
140
141<TR>
142<TD VALIGN=top WIDTH=10%><TT>thumbnail</TT></TD>
143<TD>Copy a bilevel TIFF to one that includes 8-bit greyscale
144  "thumbnail images" for each page; it is provided as an example of
145  how one might use the <TT>SubIFD</TT> tag
146  (and the library support for it)</TD>
147</TR>
148
149<TR>
150<TD VALIGN=top WIDTH=10%><TT>tiffmedian</TT></TD>
151<TD>A version of Paul Heckbert's median cut program
152  that reads an RGB TIFF image, and creates a TIFF palette file as a
153  result; it's useful for converting full-color RGB images to 8-bit
154  color for your friends that have cheapo 8-bit framebuffers.</TD>
155</TR>
156
157<TR>
158<TD VALIGN=top WIDTH=10%><TT>sgi2tiff</TT></TD>
159<TD>A program to convert SGI image files to TIFF.  This
160  program is only useful on SGI machines as it uses <TT>-limage</TT>.</TD>
161</TR>
162
163</TABLE>
164
165<P>
166Check out the manual pages for details about the above programs.
167
168
169<P>
170<HR>
171
172<ADDRESS>
173<A HREF="sam.html">Sam Leffler</A> / <A HREF="mailto:[email protected]">[email protected]</A>.
174Last updated: $Date: 1999-08-09 20:21:21 $
175</ADDRESS>
176
177</BODY>
178<FONT FACE="Arial, Helvetica, Sans">
179</HTML>
180