<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
<refentry id='rgb2gif.1'>
<refentryinfo><date>2 May 2012</date></refentryinfo>
<refmeta>
<refentrytitle>rgb2gif</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="source">GIFLIB</refmiscinfo>
<refmiscinfo class="manual">GIFLIB Documentation</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>rgb2gif</refname>
<refpurpose>convert 24-bit images to GIF images using color quantization</refpurpose>
</refnamediv>
<refsynopsisdiv id='synopsis'>
<cmdsynopsis>
<command>rgb2gif</command>
<arg choice='opt'>-v</arg>
<arg choice='opt'>-c <replaceable>colors</replaceable></arg>
<arg choice='opt'>-1</arg>
<arg choice='plain'>-s
<replaceable>width</replaceable>
<replaceable>height</replaceable></arg>
<arg choice='opt'>-h</arg>
<arg choice='opt'><replaceable>rgb-file</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1><title>Options</title>
<variablelist>
<varlistentry>
<term>-v</term>
<listitem>
<para>Verbose mode (show progress).
Enables printout of running scan lines. </para>
</listitem>
</varlistentry>
<varlistentry>
<term>-c colors </term>
<listitem>
<para> Specifies number of colors to use, in bits per pixels,
so '-c 8' specifies actually 256 colors (maximum and default).</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-1</term>
<listitem>
<para> Only one file in the format of RGBRGB... triplets (Each of R,
G, B is a byte) is read from input. This file size is 3 * Width *
Height (see '-s' below. If stdin is used for input, this option is
implicitly applied. The default (if not '-1') is 3 files with the
names RGBFile.R, RGBFile.G, RGBFile.B, each of which is Width * Height
bytes.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-s width height</term>
<listitem>
<para> Specifies the size of the image to read.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-h</term>
<listitem>
<para> Print one line of command line help, similar to Usage
above.</para>
</listitem>
</varlistentry>
</variablelist>
<para>If no rgb-file is given, rgb2gif will try to read RGB data from
stdin.</para>
</refsect1>
<refsect1><title>Author</title>
<para>Gershon Elber.</para>
</refsect1>
</refentry>