Debian Codegraph @

doc/giftool.1

raw
1 '\" t
2 .\" Title: giftool
3 .\" Author: [see the "Author" section]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: 3 June 2012
6 .\" Manual: GIFLIB Documentation
7 .\" Source: GIFLIB
8 .\" Language: English
9 .\"
10 .TH "GIFTOOL" "1" "3 June 2012" "GIFLIB" "GIFLIB Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 giftool \- GIF transformation tool
32 .SH "SYNOPSIS"
33 .HP \w'\fBgiftool\fR\ 'u
34 \fBgiftool\fR [\-a\ \fIaspect\fR] [\-b\ \fIbgcolor\fR] [\-d\ \fIdelaytime\fR] [\-i\ \fIinterlacing\fR] [\-n\ \fIimagelist\fR] [\-p\ \fIleft,top\fR] [\-s\ \fIwidth,height\fR] [\-t\ \fItranscolor\fR] [\-u\ \fIsort\-flag\fR] [\-x\ \fIdisposal\fR] [\-z\ \fIsort\-flag\fR]
35 .SH "DESCRIPTION"
36 .PP
37 A filter for transforming GIFS\&. With no options, it\*(Aqs an expensive copy of a GIF in standard input to standard output\&. Options specify filtering operations and are performed in the order specified on the command line\&.
38 .PP
39 The \-n option selects images, allowing the tool to act on a subset of images in a multi\-image GIF\&. This option takes a comma\-separated list of decimal integers which are interpreted as 1\-origin image indices; these are the images that will be acted on\&. If no \-n option is specified, the tool will select and transform all images\&.
40 .PP
41 The \-b option takes a decimal integer argument and uses it to set the (0\-origin) screen background color index\&.
42 .PP
43 The \-f option accepts a printf\-style format string and substitutes into it the values of image\-descriptor and graphics\-control fields\&. The string is formatted and output once for each selected image\&. Normal C\-style escapes \eb, \ef, \en, \er, \et\&. \ev, and \exNN are interpreted; also \ee produces ESC (ASCII 0x1b)\&. The following format cookies are substituted:
44 .PP
45 %a
46 .RS 4
47 Pixel aspect byte\&.
48 .RE
49 .PP
50 %b
51 .RS 4
52 Screen background color\&.
53 .RE
54 .PP
55 %d
56 .RS 4
57 Image delay time
58 .RE
59 .PP
60 %h
61 .RS 4
62 Image height (y dimension)
63 .RE
64 .PP
65 %n
66 .RS 4
67 Image index
68 .RE
69 .PP
70 %p
71 .RS 4
72 Image position (as an x,y pair)
73 .RE
74 .PP
75 %s
76 .RS 4
77 Screen size (as an x,y pair)
78 .RE
79 .PP
80 %t
81 .RS 4
82 Image transparent\-color index
83 .RE
84 .PP
85 %u
86 .RS 4
87 Image user\-input flag (boolean)
88 .RE
89 .PP
90 %v
91 .RS 4
92 GIF version string
93 .RE
94 .PP
95 %w
96 .RS 4
97 Image width (x dimension)
98 .RE
99 .PP
100 %x
101 .RS 4
102 Image GIF89 disposal mode
103 .RE
104 .PP
105 %z
106 .RS 4
107 Image\*(Aqs color table sort flag (boolean, false if no local color map)
108 .RE
109 .PP
110 Boolean substitutions may take a prefix to modify how they are displayed:
111 .PP
112 1
113 .RS 4
114 "1" or "0"
115 .RE
116 .PP
117 o
118 .RS 4
119 "on" or "off"
120 .RE
121 .PP
122 t
123 .RS 4
124 "t" or "f"
125 .RE
126 .PP
127 y
128 .RS 4
129 "yes" or "no"
130 .RE
131 .PP
132 Thus, for example, "%oz" displays image sort flags using the strings "on" and "off"\&. The default with no prefix is numeric\&.
133 .PP
134 The \-a option takes an unsigned decimal integer argument and uses it to set the aspect\-ratio bye in the logical screen descriptor block\&.
135 .PP
136 The \-b option takes an unsigned decimal integer argument and uses it to set the background color index in the logical screen descriptor block\&.
137 .PP
138 The \-d option takes a decimal integer argument and uses it to set a delay time, in hundredths of a second, on selected images\&.
139 .PP
140 The \-i option sets or clears interlacing in selected images\&. Acceptable arguments are "1", "0", "yes", "no", "on", "off", "t", "f"
141 .PP
142 The \-p option takes a (0\-origin) x,y coordinate\-pair and sets it as the preferred upper\-left\-corner coordinates of selected images\&.
143 .PP
144 The \-s option takes a (0\-origin) x,y coordinate\-pair and sets it as the expected display screen size\&.
145 .PP
146 The \-t option takes a decimal integer argument and uses it to set the (0\-origin) index of the transparency color in selected images\&.
147 .PP
148 The \-u option sets or clears the user\-input flag in selected images\&. Acceptable arguments are "1", "0", "yes", "no", "on", "off", "t", "f"\&.
149 .PP
150 The \-x option takes a decimal integer argument and uses it to set the GIF89 disposal mode in selected images\&.
151 .PP
152 The \-z option sets or clears the color\-table sort flag in selected images\&. Acceptable arguments are "1", "0", "yes", "no", "on", "off", "t", "f"\&.
153 .PP
154 Note that the \-a, \-b, \-p, \-s, and \-z options are included to complete the ability to modify all fields defined in the GIF standard, but should have no effect on how an image renders on browsers or modern viewers\&.
155 .SH "AUTHOR"
156 .PP
157 Eric S\&. Raymond\&.