| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>giftool</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /></head><body><div class="refentry"><a id="giftool.1"></a><div class="titlepage"></div><div class="refnamediv"><a id="name"></a><h2>Name</h2><p>giftool — GIF transformation tool</p></div><div class="refsynopsisdiv"><a id="synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">giftool</code> [-a <em class="replaceable"><code>aspect</code></em>] [-b <em class="replaceable"><code>bgcolor</code></em>] [-d <em class="replaceable"><code>delaytime</code></em>] [-i <em class="replaceable"><code>interlacing</code></em>] [-n <em class="replaceable"><code>imagelist</code></em>] [-p <em class="replaceable"><code>left,top</code></em>] [-s <em class="replaceable"><code>width,height</code></em>] [-t <em class="replaceable"><code>transcolor</code></em>] [-u <em class="replaceable"><code>sort-flag</code></em>] [-x <em class="replaceable"><code>disposal</code></em>] [-z <em class="replaceable"><code>sort-flag</code></em>]</p></div></div><div class="refsect1"><a id="id1337"></a><h2>Description</h2><p>A filter for transforming GIFS. With no options, it's an expensive |
| 3 |
copy of a GIF in standard input to standard output. Options specify |
| 4 |
filtering operations and are performed in the order specified on the command |
| 5 |
line.</p><p>The -n option selects images, allowing the tool to act on a |
| 6 |
subset of images in a multi-image GIF. This option takes a |
| 7 |
comma-separated list of decimal integers which are interpreted as |
| 8 |
1-origin image indices; these are the images that will be acted on. |
| 9 |
If no -n option is specified, the tool will select and transform all |
| 10 |
images.</p><p>The -b option takes a decimal integer argument and uses it to |
| 11 |
set the (0-origin) screen background color index.</p><p>The -f option accepts a printf-style format string and |
| 12 |
substitutes into it the values of image-descriptor and graphics-control |
| 13 |
fields. The string is formatted and output once for each selected |
| 14 |
image. Normal C-style escapes \b, \f, \n, \r, \t. \v, and \xNN are |
| 15 |
interpreted; also \e produces ESC (ASCII 0x1b). The following format |
| 16 |
cookies are substituted:</p><div class="variablelist"><dl class="variablelist"><dt><span class="term">%a</span></dt><dd><p>Pixel aspect byte.</p></dd><dt><span class="term">%b</span></dt><dd><p>Screen background color.</p></dd><dt><span class="term">%d</span></dt><dd><p>Image delay time</p></dd><dt><span class="term">%h</span></dt><dd><p>Image height (y dimension)</p></dd><dt><span class="term">%n</span></dt><dd><p>Image index</p></dd><dt><span class="term">%p</span></dt><dd><p>Image position (as an x,y pair)</p></dd><dt><span class="term">%s</span></dt><dd><p>Screen size (as an x,y pair)</p></dd><dt><span class="term">%t</span></dt><dd><p>Image transparent-color index</p></dd><dt><span class="term">%u</span></dt><dd><p>Image user-input flag (boolean)</p></dd><dt><span class="term">%v</span></dt><dd><p>GIF version string</p></dd><dt><span class="term">%w</span></dt><dd><p>Image width (x dimension)</p></dd><dt><span class="term">%x</span></dt><dd><p>Image GIF89 disposal mode</p></dd><dt><span class="term">%z</span></dt><dd><p>Image's color table sort flag (boolean, |
| 17 |
false if no local color map)</p></dd></dl></div><p>Boolean substitutions may take a prefix to modify how they are |
| 18 |
displayed:</p><div class="variablelist"><dl class="variablelist"><dt><span class="term">1</span></dt><dd><p>"1" or "0"</p></dd><dt><span class="term">o</span></dt><dd><p>"on" or "off"</p></dd><dt><span class="term">t</span></dt><dd><p>"t" or "f"</p></dd><dt><span class="term">y</span></dt><dd><p>"yes" or "no"</p></dd></dl></div><p>Thus, for example, "%oz" displays image sort flags using the |
| 19 |
strings "on" and "off". The default with no prefix is numeric.</p><p>The -a option takes an unsigned decimal integer argument and |
| 20 |
uses it to set the aspect-ratio bye in the logical screen descriptor |
| 21 |
block.</p><p>The -b option takes an unsigned decimal integer argument and |
| 22 |
uses it to set the background color index in the logical screen |
| 23 |
descriptor block.</p><p>The -d option takes a decimal integer argument and uses it to set a delay |
| 24 |
time, in hundredths of a second, on selected images.</p><p>The -i option sets or clears interlacing in selected |
| 25 |
images. Acceptable arguments are "1", "0", "yes", "no", "on", "off", |
| 26 |
"t", "f"</p><p>The -p option takes a (0-origin) x,y coordinate-pair and sets it |
| 27 |
as the preferred upper-left-corner coordinates of selected |
| 28 |
images.</p><p>The -s option takes a (0-origin) x,y coordinate-pair and sets it |
| 29 |
as the expected display screen size.</p><p>The -t option takes a decimal integer argument and uses it to set the |
| 30 |
(0-origin) index of the transparency color in selected images.</p><p>The -u option sets or clears the user-input flag in selected |
| 31 |
images. Acceptable arguments are "1", "0", "yes", "no", "on", "off", |
| 32 |
"t", "f".</p><p>The -x option takes a decimal integer argument and uses it to set the |
| 33 |
GIF89 disposal mode in selected images.</p><p>The -z option sets or clears the color-table sort flag in |
| 34 |
selected images. Acceptable arguments are "1", "0", "yes", "no", |
| 35 |
"on", "off", "t", "f".</p><p>Note that the -a, -b, -p, -s, and -z options are included to |
| 36 |
complete the ability to modify all fields defined in the GIF standard, |
| 37 |
but should have no effect on how an image renders on browsers or |
| 38 |
modern viewers.</p></div><div class="refsect1"><a id="id1338"></a><h2>Author</h2><p>Eric S. Raymond.</p></div></div></body></html> |