[go: up one dir, main page]

Menu

[fbcc49]: / doc / intro.xml  Maximize  Restore  History

Download this file

305 lines (268 with data), 9.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article PUBLIC
"-//OASIS//DTD DocBook XML V4.1.2//EN"
"docbook/docbookx.dtd" [
<!ENTITY homepage "http://catb.org/~esr/">
<!ENTITY email "esr@thyrsus.com">
]>
<article><title>Introduction to GIFLIB</title>
<articleinfo>
<author>
<firstname>Eric</firstname>
<othername>Steven</othername>
<surname>Raymond</surname>
<affiliation>
<orgname><ulink url="&homepage;">
Thyrsus Enterprises</ulink></orgname>
<address>
<email>&email;</email>
</address>
</affiliation>
</author>
<copyright>
<year>2012</year>
<holder role="mailto:&email;">Eric S. Raymond</holder>
</copyright>
</articleinfo>
<para>GIFLIB is a package of portable tools and library routines for
working with GIF images.</para>
<para>The Graphics Interchange Format(c) specification is the copyrighted
property of CompuServe Incorporated. GIF(sm) is a service mark
property of CompuServe Incorporated.</para>
<para>This package has been released under an X Consortium-like open-source
license. Use and copy as you see fit. If you make useful changes,
add new tools, or find and fix bugs, please send your mods to the
maintainers for general distribution.</para>
<para>The util directory includes programs to clip, rotate, scale, and
position GIF images. These are no replacement for an interactive graphics
editor, but they can be very useful for scripted image generation or
transformation.</para>
<para>The library includes program-callable entry points for reading and writing
GIF files, an 8x8 utility font for embedding text in GIFs, and an error
handler. GIF manipulation can be done at a relatively low level by
sequential I/O (which automatically does/undoes image compression) or at
a higher level by slurping an entire GIF into allocated core.</para>
<para>This library speaks both GIF87a and GIF89. The differences
between GIF87 and GIF89 are minor: in the latter, the interpretation
of some extension block types is defined. The library never needs to
actually interpret these, but <ulink
url="giftext.html">giftext</ulink> notices them.</para>
<sect1><title>Utilities</title>
<para>Here is a summary of the utilities in this package. If you're looking
at this page through a web browser, each utility name should be a
hotlink to HTML documentation.</para>
<sect2><title>Viewers</title>
<variablelist>
<varlistentry>
<term><ulink url="gif2x11.html">gif2x11</ulink></term>
<listitem>
<para>display images saved as GIF files under X window system.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2><title>Conversion Utilities</title>
<variablelist>
<varlistentry>
<term><ulink url="gif2rgb.html">gif2rgb</ulink></term>
<listitem>
<para>convert images saved as GIF to 24-bit RGB image(s)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="raw2gif.html">raw2gif</ulink></term>
<listitem>
<para>convert raw 8-bit image data into GIF files</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="rgb2gif.html">rgb2gif</ulink></term>
<listitem>
<para>convert 24 bit images to a GIF image using color quantization</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2><title>Test Pattern Generators</title>
<variablelist>
<varlistentry>
<term><ulink url="gifbg.html">gifbg</ulink></term>
<listitem>
<para>generate a single-color test pattern GIF</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifcolor.html">gifcolor</ulink></term>
<listitem>
<para>generate color test patterns</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifwedge.html">gifwedge</ulink></term>
<listitem>
<para>create a test GIF image resembling a color monitor test pattern</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2><title>Image Manipulation Components</title>
<variablelist>
<varlistentry>
<term><ulink url="gifasm.html">gifasm</ulink></term>
<listitem>
<para>assemble multiple GIFs into one, or burst a multiple-image GIF</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifclip.html">gifclip</ulink></term>
<listitem>
<para>clip or crop a GIF image</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifclrmp.html">gifclrmp</ulink></term>
<listitem>
<para>modify GIF image colormaps</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifcomb.html">gifcomb</ulink></term>
<listitem>
<para>combine 2 GIF images of exactly the same size into one</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="giffix.html">giffix</ulink></term>
<listitem>
<para>clumsily attempts to fix truncated GIF images</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifflip.html">gifflip</ulink></term>
<listitem>
<para>flip GIF image along X or Y axis or rotate by 90 degrees</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifinter.html">gifinter</ulink></term>
<listitem>
<para>convert between interlaced and non interlaced images</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifovly.html">gifovly</ulink></term>
<listitem>
<para>generate one composite GIF from a multiple-image GIF</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifpos.html">gifpos</ulink></term>
<listitem>
<para>change a GIF's screen size or recondition it.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifrotat.html">gifrotat</ulink></term>
<listitem>
<para>rotate a GIF through any desired angle</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifrsize.html">gifrsize</ulink></term>
<listitem>
<para>resize a GIF by deletion or duplication of bits</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2><title>Report Generators</title>
<variablelist>
<varlistentry>
<term><ulink url="giftext.html">giftext</ulink></term>
<listitem>
<para>print (text only) general information about a GIF</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifhisto.html">gifhisto</ulink></term>
<listitem>
<para>generate color-frequency histogram from a GIF</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2><title>GIF Composition Tools</title>
<variablelist>
<varlistentry>
<term><ulink url="icon2gif.html">icon2gif</ulink></term>
<listitem>
<para>converter/deconverter to/from an editable text format</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="text2gif.html">text2gif</ulink></term>
<listitem>
<para>generate GIF images out of regular text in 8x8 font</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifinto.html">gifinto</ulink></term>
<listitem>
<para>end-of-pipe fitting for GIF-processing pipelines</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifcompose.html">gifcompose</ulink></term>
<listitem>
<para>use giflib tools to compose images</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2><title>C Code Templates</title>
<variablelist>
<varlistentry>
<term><ulink url="giffiltr.html">giffiltr</ulink></term>
<listitem>
<para>template code for filtering a GIF sequentially</para>
</listitem>
</varlistentry>
<varlistentry>
<term><ulink url="gifspnge.html">gifspnge</ulink></term>
<listitem>
<para>template code for filtering a GIF with in-core operations</para>
</listitem>
</varlistentry>
</variablelist>
<para>Under MS-DOS, most filters will print the current input scan line number
(counting up) whenever they read image input, and will print output image line
number (counting down) when they dump output. Utilities that only read or
write always print in increasing order. Utilities (like GifPos that only
change positions) that copy the image as a block of compressed data will print
nothing --- they cannot identify a scan line number, and are enough faster that
the feedback to the user doesn't seem necessary.</para>
</sect2>
</sect1>
<sect1><title>Library Functions</title>
<para>The library contains two groups of C functions. One group does sequential
I/O on the stream-oriented GIF format. The other supports grabbing an
entire GIF into allocated core, operating on it in core, and then writing
the modified in-core GIF out to disk.</para>
<para>Unless you are on extremely memory-limited machine you probably want
to use the second group.</para>
<para>Detailed documentation on the library entry points is in <ulink
url="gif_lib.html">gif_lib.html</ulink>. Library error codes are
described in <ulink url="liberror.html">liberror.html</ulink></para>
</sect1>
<sect1><title>The GIF Standard</title>
<para>The doc subdirectory includes flat-ASCII descriptions of <ulink
url="gif89.txt">GIF89 format</ulink> and <ulink url="lzgif.txt">Lempel-Ziv
Compression</ulink>.</para>
</sect1>
<sect1><title>Package Status</title>
<para>GIFLIB's current maintainer is Eric S. Raymond. You can find his home
page at <ulink url="&homepage;">http://www.ccil.org/esr</ulink>.</para>
<para>GIFLIB is not under active development, but bug fixes are being
accepted.</para>
</sect1>
</article>