1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libtiff-download-http
|
---|
8 | "http://download.osgeo.org/libtiff/tiff-&libtiff-version;.tar.gz">
|
---|
9 | <!-- <!ENTITY libtiff-download-ftp
|
---|
10 | "ftp://ftp.remotesensing.org/libtiff/tiff-&libtiff-version;.tar.gz">-->
|
---|
11 | <!ENTITY libtiff-download-ftp " ">
|
---|
12 | <!ENTITY libtiff-md5sum "114192d7ebe537912a2b97408832e7fd">
|
---|
13 | <!ENTITY libtiff-size "2.3 MB">
|
---|
14 | <!ENTITY libtiff-buildsize "15 MB (with tests)">
|
---|
15 | <!ENTITY libtiff-time "less than 0.1 SBU (with tests)">
|
---|
16 | ]>
|
---|
17 |
|
---|
18 | <sect1 id="libtiff" xreflabel="LibTIFF-&libtiff-version;">
|
---|
19 | <?dbhtml filename="libtiff.html"?>
|
---|
20 |
|
---|
21 | <sect1info>
|
---|
22 | <othername>$LastChangedBy$</othername>
|
---|
23 | <date>$Date$</date>
|
---|
24 | </sect1info>
|
---|
25 |
|
---|
26 | <title>LibTIFF-&libtiff-version;</title>
|
---|
27 |
|
---|
28 | <indexterm zone="libtiff">
|
---|
29 | <primary sortas="a-LibTIFF">LibTIFF</primary>
|
---|
30 | </indexterm>
|
---|
31 |
|
---|
32 | <sect2 role="package">
|
---|
33 | <title>Introduction to LibTIFF</title>
|
---|
34 |
|
---|
35 | <para>
|
---|
36 | The <application>LibTIFF</application> package contains the TIFF
|
---|
37 | libraries and associated utilities. The libraries are used by many
|
---|
38 | programs for reading and writing TIFF files and the utilities are
|
---|
39 | used for general work with TIFF files.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs83_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (HTTP): <ulink url="&libtiff-download-http;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (FTP): <ulink url="&libtiff-download-ftp;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download MD5 sum: &libtiff-md5sum;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download size: &libtiff-size;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated disk space required: &libtiff-buildsize;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated build time: &libtiff-time;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 | <!--
|
---|
78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
79 | <itemizedlist spacing='compact'>
|
---|
80 | <listitem>
|
---|
81 | <para>Required Patch: <ulink
|
---|
82 | url="&patch-root;/tiff-4.0.3-fixes-1.patch"/></para>
|
---|
83 | </listitem>
|
---|
84 | </itemizedlist>-->
|
---|
85 |
|
---|
86 | <bridgehead renderas="sect3">LibTIFF Dependencies</bridgehead>
|
---|
87 |
|
---|
88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
89 | <para role="recommended">
|
---|
90 | <xref linkend="cmake"/>
|
---|
91 | </para>
|
---|
92 |
|
---|
93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
94 | <para role="optional">
|
---|
95 | <xref linkend="freeglut"/> (required for <command>tiffgt</command>),
|
---|
96 | <xref linkend="libjpeg"/>,
|
---|
97 | <xref linkend="libwebp"/>,
|
---|
98 | <ulink url="http://www.cl.cam.ac.uk/~mgk25/jbigkit/">JBIG-KIT</ulink>, and
|
---|
99 | <ulink url="https://facebook.github.io/zstd/">Zstd</ulink>
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <para condition="html" role="usernotes">User Notes:
|
---|
103 | <ulink url="&blfs-wiki;/libtiff"/>
|
---|
104 | </para>
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="installation">
|
---|
108 | <title>Installation of LibTIFF</title>
|
---|
109 |
|
---|
110 | <para>
|
---|
111 | Install <application>LibTIFF</application> by running the following
|
---|
112 | commands:
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <!-- "build" exists in the source tree -->
|
---|
116 | <screen><userinput>mkdir -p libtiff-build &&
|
---|
117 | cd libtiff-build &&
|
---|
118 |
|
---|
119 | cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.0.9 \
|
---|
120 | -DCMAKE_INSTALL_PREFIX=/usr -G Ninja .. &&
|
---|
121 | ninja</userinput></screen>
|
---|
122 |
|
---|
123 | <para>
|
---|
124 | To test the results, issue: <command>ninja test</command>.
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <para>
|
---|
128 | Now, as the <systemitem class="username">root</systemitem>
|
---|
129 | user:
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
133 |
|
---|
134 | </sect2>
|
---|
135 |
|
---|
136 | <sect2 role="content">
|
---|
137 | <title>Contents</title>
|
---|
138 |
|
---|
139 | <segmentedlist>
|
---|
140 | <segtitle>Installed Programs</segtitle>
|
---|
141 | <segtitle>Installed Libraries</segtitle>
|
---|
142 | <segtitle>Installed Directory</segtitle>
|
---|
143 |
|
---|
144 | <seglistitem>
|
---|
145 | <seg>
|
---|
146 | fax2ps, fax2tiff, pal2rgb, ppm2tiff,
|
---|
147 | raw2tiff, tiff2bw, tiff2pdf, tiff2ps,
|
---|
148 | tiff2rgba, tiffcmp, tiffcp, tiffcrop, tiffdither, tiffdump, tiffgt,
|
---|
149 | tiffinfo, tiffmedian, tiffset and tiffsplit
|
---|
150 | </seg>
|
---|
151 | <seg>
|
---|
152 | libtiff.so and libtiffxx.so
|
---|
153 | </seg>
|
---|
154 | <seg>
|
---|
155 | /usr/share/doc/tiff-&libtiff-version;
|
---|
156 | </seg>
|
---|
157 | </seglistitem>
|
---|
158 | </segmentedlist>
|
---|
159 |
|
---|
160 | <variablelist>
|
---|
161 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
162 | <?dbfo list-presentation="list"?>
|
---|
163 | <?dbhtml list-presentation="table"?>
|
---|
164 |
|
---|
165 | <!-- <varlistentry id="bmp2tiff">
|
---|
166 | <term><command>bmp2tiff</command></term>
|
---|
167 | <listitem>
|
---|
168 | <para>
|
---|
169 | converts a Microsoft Windows Device Independent Bitmap image
|
---|
170 | file to a TIFF image.
|
---|
171 | </para>
|
---|
172 | <indexterm zone="libtiff bmp2tiff">
|
---|
173 | <primary sortas="b-bmp2tiff">bmp2tiff</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry> -->
|
---|
177 |
|
---|
178 | <varlistentry id="fax2ps">
|
---|
179 | <term><command>fax2ps</command></term>
|
---|
180 | <listitem>
|
---|
181 | <para>
|
---|
182 | converts a TIFF facsimile to compressed PostScript file.
|
---|
183 | </para>
|
---|
184 | <indexterm zone="libtiff fax2ps">
|
---|
185 | <primary sortas="b-fax2ps">fax2ps</primary>
|
---|
186 | </indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 |
|
---|
190 | <varlistentry id="fax2tiff">
|
---|
191 | <term><command>fax2tiff</command></term>
|
---|
192 | <listitem>
|
---|
193 | <para>
|
---|
194 | creates a TIFF Class F fax file from raw fax data.
|
---|
195 | </para>
|
---|
196 | <indexterm zone="libtiff fax2tiff">
|
---|
197 | <primary sortas="b-fax2tiff">fax2tiff</primary>
|
---|
198 | </indexterm>
|
---|
199 | </listitem>
|
---|
200 | </varlistentry>
|
---|
201 |
|
---|
202 | <!-- <varlistentry id="gif2tiff">
|
---|
203 | <term><command>gif2tiff</command></term>
|
---|
204 | <listitem>
|
---|
205 | <para>
|
---|
206 | creates a TIFF file from a GIF87 format image file.
|
---|
207 | </para>
|
---|
208 | <indexterm zone="libtiff gif2tiff">
|
---|
209 | <primary sortas="b-gif2tiff">gif2tiff</primary>
|
---|
210 | </indexterm>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry> -->
|
---|
213 |
|
---|
214 | <varlistentry id="pal2rgb">
|
---|
215 | <term><command>pal2rgb</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>
|
---|
218 | converts a palette color TIFF image to a full color
|
---|
219 | image.
|
---|
220 | </para>
|
---|
221 | <indexterm zone="libtiff pal2rgb">
|
---|
222 | <primary sortas="b-pal2rgb">pal2rgb</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | <varlistentry id="ppm2tiff">
|
---|
228 | <term><command>ppm2tiff</command></term>
|
---|
229 | <listitem>
|
---|
230 | <para>
|
---|
231 | creates a TIFF file from a PPM image file.
|
---|
232 | </para>
|
---|
233 | <indexterm zone="libtiff ppm2tiff">
|
---|
234 | <primary sortas="b-ppm2tiff">ppm2tiff</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | <!-- <varlistentry id="ras2tiff">
|
---|
240 | <term><command>ras2tiff</command></term>
|
---|
241 | <listitem>
|
---|
242 | <para>
|
---|
243 | creates a TIFF file from a Sun rasterfile.
|
---|
244 | </para>
|
---|
245 | <indexterm zone="libtiff ras2tiff">
|
---|
246 | <primary sortas="b-ras2tiff">ras2tiff</primary>
|
---|
247 | </indexterm>
|
---|
248 | </listitem>
|
---|
249 | </varlistentry> -->
|
---|
250 |
|
---|
251 | <varlistentry id="raw2tiff">
|
---|
252 | <term><command>raw2tiff</command></term>
|
---|
253 | <listitem>
|
---|
254 | <para>
|
---|
255 | converts a raw byte sequence into TIFF.
|
---|
256 | </para>
|
---|
257 | <indexterm zone="libtiff raw2tiff">
|
---|
258 | <primary sortas="b-raw2tiff">raw2tiff</primary>
|
---|
259 | </indexterm>
|
---|
260 | </listitem>
|
---|
261 | </varlistentry>
|
---|
262 |
|
---|
263 | <!-- <varlistentry id="rgb2ycbcr">
|
---|
264 | <term><command>rgb2ycbcr</command></term>
|
---|
265 | <listitem>
|
---|
266 | <para>
|
---|
267 | converts non-YCbCr TIFF images to YCbCr TIFF images.
|
---|
268 | </para>
|
---|
269 | <indexterm zone="libtiff rgb2ycbcr">
|
---|
270 | <primary sortas="b-rgb2ycbcr">rgb2ycbcr</primary>
|
---|
271 | </indexterm>
|
---|
272 | </listitem>
|
---|
273 | </varlistentry>
|
---|
274 |
|
---|
275 | <varlistentry id="thumbnail">
|
---|
276 | <term><command>thumbnail</command></term>
|
---|
277 | <listitem>
|
---|
278 | <para>
|
---|
279 | creates a TIFF file with thumbnail images.
|
---|
280 | </para>
|
---|
281 | <indexterm zone="libtiff thumbnail">
|
---|
282 | <primary sortas="b-thumbnail">thumbnail</primary>
|
---|
283 | </indexterm>
|
---|
284 | </listitem>
|
---|
285 | </varlistentry> -->
|
---|
286 |
|
---|
287 | <varlistentry id="tiff2bw">
|
---|
288 | <term><command>tiff2bw</command></term>
|
---|
289 | <listitem>
|
---|
290 | <para>
|
---|
291 | converts a color TIFF image to grayscale.
|
---|
292 | </para>
|
---|
293 | <indexterm zone="libtiff tiff2bw">
|
---|
294 | <primary sortas="b-tiff2bw">tiff2bw</primary>
|
---|
295 | </indexterm>
|
---|
296 | </listitem>
|
---|
297 | </varlistentry>
|
---|
298 |
|
---|
299 | <varlistentry id="tiff2pdf">
|
---|
300 | <term><command>tiff2pdf</command></term>
|
---|
301 | <listitem>
|
---|
302 | <para>
|
---|
303 | converts a TIFF image to a PDF document.
|
---|
304 | </para>
|
---|
305 | <indexterm zone="libtiff tiff2pdf">
|
---|
306 | <primary sortas="b-tiff2pdf">tiff2pdf</primary>
|
---|
307 | </indexterm>
|
---|
308 | </listitem>
|
---|
309 | </varlistentry>
|
---|
310 |
|
---|
311 | <varlistentry id="tiff2ps">
|
---|
312 | <term><command>tiff2ps</command></term>
|
---|
313 | <listitem>
|
---|
314 | <para>
|
---|
315 | converts a TIFF image to a PostScript file.
|
---|
316 | </para>
|
---|
317 | <indexterm zone="libtiff tiff2ps">
|
---|
318 | <primary sortas="b-tiff2ps">tiff2ps</primary>
|
---|
319 | </indexterm>
|
---|
320 | </listitem>
|
---|
321 | </varlistentry>
|
---|
322 |
|
---|
323 | <varlistentry id="tiff2rgba">
|
---|
324 | <term><command>tiff2rgba</command></term>
|
---|
325 | <listitem>
|
---|
326 | <para>
|
---|
327 | converts a wide variety of TIFF images into an RGBA
|
---|
328 | TIFF image.
|
---|
329 | </para>
|
---|
330 | <indexterm zone="libtiff tiff2rgba">
|
---|
331 | <primary sortas="b-tiff2rgba">tiff2rgba</primary>
|
---|
332 | </indexterm>
|
---|
333 | </listitem>
|
---|
334 | </varlistentry>
|
---|
335 |
|
---|
336 | <varlistentry id="tiffcmp">
|
---|
337 | <term><command>tiffcmp</command></term>
|
---|
338 | <listitem>
|
---|
339 | <para>
|
---|
340 | compares two TIFF files.
|
---|
341 | </para>
|
---|
342 | <indexterm zone="libtiff tiffcmp">
|
---|
343 | <primary sortas="b-tiffcmp">tiffcmp</primary>
|
---|
344 | </indexterm>
|
---|
345 | </listitem>
|
---|
346 | </varlistentry>
|
---|
347 |
|
---|
348 | <varlistentry id="tiffcp">
|
---|
349 | <term><command>tiffcp</command></term>
|
---|
350 | <listitem>
|
---|
351 | <para>
|
---|
352 | copies (and possibly converts) a TIFF file.
|
---|
353 | </para>
|
---|
354 | <indexterm zone="libtiff tiffcp">
|
---|
355 | <primary sortas="b-tiffcp">tiffcp</primary>
|
---|
356 | </indexterm>
|
---|
357 | </listitem>
|
---|
358 | </varlistentry>
|
---|
359 |
|
---|
360 | <varlistentry id="tiffcrop">
|
---|
361 | <term><command>tiffcrop</command></term>
|
---|
362 | <listitem>
|
---|
363 | <para>
|
---|
364 | selects, copies, crops, converts, extracts and/or processes
|
---|
365 | one or more TIFF files.
|
---|
366 | </para>
|
---|
367 | <indexterm zone="libtiff tiffcrop">
|
---|
368 | <primary sortas="b-tiffcrop">tiffcrop</primary>
|
---|
369 | </indexterm>
|
---|
370 | </listitem>
|
---|
371 | </varlistentry>
|
---|
372 |
|
---|
373 | <varlistentry id="tiffdither">
|
---|
374 | <term><command>tiffdither</command></term>
|
---|
375 | <listitem>
|
---|
376 | <para>
|
---|
377 | converts a grayscale image to bilevel using dithering.
|
---|
378 | </para>
|
---|
379 | <indexterm zone="libtiff tiffdither">
|
---|
380 | <primary sortas="b-tiffdither">tiffdither</primary>
|
---|
381 | </indexterm>
|
---|
382 | </listitem>
|
---|
383 | </varlistentry>
|
---|
384 |
|
---|
385 | <varlistentry id="tiffdump">
|
---|
386 | <term><command>tiffdump</command></term>
|
---|
387 | <listitem>
|
---|
388 | <para>
|
---|
389 | prints verbatim information about TIFF files.
|
---|
390 | </para>
|
---|
391 | <indexterm zone="libtiff tiffdump">
|
---|
392 | <primary sortas="b-tiffdump">tiffdump</primary>
|
---|
393 | </indexterm>
|
---|
394 | </listitem>
|
---|
395 | </varlistentry>
|
---|
396 |
|
---|
397 | <varlistentry id="tiffgt">
|
---|
398 | <term><command>tiffgt</command></term>
|
---|
399 | <listitem>
|
---|
400 | <para>
|
---|
401 | displays an image stored in a TIFF file.
|
---|
402 | </para>
|
---|
403 | <indexterm zone="libtiff tiffgt">
|
---|
404 | <primary sortas="b-tiffgt">tiffgt</primary>
|
---|
405 | </indexterm>
|
---|
406 | </listitem>
|
---|
407 | </varlistentry>
|
---|
408 |
|
---|
409 | <varlistentry id="tiffinfo">
|
---|
410 | <term><command>tiffinfo</command></term>
|
---|
411 | <listitem>
|
---|
412 | <para>
|
---|
413 | prints information about TIFF files.
|
---|
414 | </para>
|
---|
415 | <indexterm zone="libtiff tiffinfo">
|
---|
416 | <primary sortas="b-tiffinfo">tiffinfo</primary>
|
---|
417 | </indexterm>
|
---|
418 | </listitem>
|
---|
419 | </varlistentry>
|
---|
420 |
|
---|
421 | <varlistentry id="tiffmedian">
|
---|
422 | <term><command>tiffmedian</command></term>
|
---|
423 | <listitem>
|
---|
424 | <para>
|
---|
425 | applies the median cut algorithm to data in a TIFF file.
|
---|
426 | </para>
|
---|
427 | <indexterm zone="libtiff tiffmedian">
|
---|
428 | <primary sortas="b-tiffmedian">tiffmedian</primary>
|
---|
429 | </indexterm>
|
---|
430 | </listitem>
|
---|
431 | </varlistentry>
|
---|
432 |
|
---|
433 | <varlistentry id="tiffset">
|
---|
434 | <term><command>tiffset</command></term>
|
---|
435 | <listitem>
|
---|
436 | <para>
|
---|
437 | sets the value of a TIFF header to a specified value.
|
---|
438 | </para>
|
---|
439 | <indexterm zone="libtiff tiffset">
|
---|
440 | <primary sortas="b-tiffset">tiffset</primary>
|
---|
441 | </indexterm>
|
---|
442 | </listitem>
|
---|
443 | </varlistentry>
|
---|
444 |
|
---|
445 | <varlistentry id="tiffsplit">
|
---|
446 | <term><command>tiffsplit</command></term>
|
---|
447 | <listitem>
|
---|
448 | <para>
|
---|
449 | splits a multi-image TIFF into single-image TIFF files.
|
---|
450 | </para>
|
---|
451 | <indexterm zone="libtiff tiffsplit">
|
---|
452 | <primary sortas="b-tiffsplit">tiffsplit</primary>
|
---|
453 | </indexterm>
|
---|
454 | </listitem>
|
---|
455 | </varlistentry>
|
---|
456 |
|
---|
457 | <varlistentry id="libtiff-lib">
|
---|
458 | <term><filename class="libraryfile">libtiff.so</filename></term>
|
---|
459 | <listitem>
|
---|
460 | <para>
|
---|
461 | contains the API functions used by the
|
---|
462 | <application>libtiff</application> programs as well as other
|
---|
463 | programs to read and write TIFF files.
|
---|
464 | </para>
|
---|
465 | <indexterm zone="libtiff libtiff-lib">
|
---|
466 | <primary sortas="c-libtiff">libtiff.so</primary>
|
---|
467 | </indexterm>
|
---|
468 | </listitem>
|
---|
469 | </varlistentry>
|
---|
470 |
|
---|
471 | <varlistentry id="libtiffxx">
|
---|
472 | <term><filename class="libraryfile">libtiffxx.so</filename></term>
|
---|
473 | <listitem>
|
---|
474 | <para>
|
---|
475 | contains the C++ API functions used
|
---|
476 | by programs to read and write TIFF files.
|
---|
477 | </para>
|
---|
478 | <indexterm zone="libtiff libtiffxx">
|
---|
479 | <primary sortas="c-libtiffxx">libtiffxx.so</primary>
|
---|
480 | </indexterm>
|
---|
481 | </listitem>
|
---|
482 | </varlistentry>
|
---|
483 |
|
---|
484 | </variablelist>
|
---|
485 |
|
---|
486 | </sect2>
|
---|
487 |
|
---|
488 | </sect1>
|
---|