---
name: "rle2gif"
section: "1"
platform: "linux"
package: "libungif-bin"
version: "4.1.3-2sarge1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/rle2gif"
---

# rle2gif(1)

Program to convert RLE images to GIF.

## NAME

rle2gif - Program to convert RLE images to GIF.

## SYNOPSIS

rle2gif \[-q\] \[-c #Colors\] \[-h\] RleFile

## DESCRIPTION

A program to convert images saved as RLE (Utah raster toolkit) to GIF format.

If no RleFile is given, Rle2Gif will try to read an Rle file from stdin.

## OPTIONS

- **-q**

  Quiet mode.  Defaults off on MSDOS, on under UNIX.  Controls printout of running scan lines.  Use -q- to invert.\

- **-c #Colors**

  Select size of color map in the output Gif file. #Colors should be given as the based 2 log of number of colors. Default is 8 which is 256 colors, and which is also the maximum.\

- **-h**

  Print one line of command line help, similar to Usage above..

## NOTES

As the RLE format allows full 24 bits per pixel (8 per primary color) Colors must be quantized to the number of colors as set by the \[-c\] option, above. This process is quite slow.  See the quantize.c file in the lib directory for the code for this quantization algorithm (median cut).

## SEE ALSO

[*gif2bgi*(1)](/gif2bgi/1.md), [*gif2epsn*(1)](/gif2epsn/1.md), [*gif2herc*(1)](/gif2herc/1.md), [*gif2iris*(1)](/gif2iris/1.md), [*gif2ps*(1)](/gif2ps/1.md), [*gif2rgb*(1)](/gif2rgb/1.md), [*gif2rle*(1)](/gif2rle/1.md), [*gif2x11*(1)](/gif2x11/1.md), [*gifasm*(1)](/gifasm/1.md), [*gifbg*(1)](/gifbg/1.md), [*gifburst*(1)](/gifburst/1.md), [*gifclip*(1)](/gifclip/1.md), [*gifclrmp*(1)](/gifclrmp/1.md), [*gifcolor*(1)](/gifcolor/1.md), [*gifcomb*(1)](/gifcomb/1.md), [*gifcompose*(1)](/gifcompose/1.md), [*giffiltr*(1)](/giffiltr/1.md), [*giffix*(1)](/giffix/1.md), [*gifflip*(1)](/gifflip/1.md), [*gifhisto*(1)](/gifhisto/1.md), [*gifinter*(1)](/gifinter/1.md), [*gifinto*(1)](/gifinto/1.md), [*gifovly*(1)](/gifovly/1.md), [*gifpos*(1)](/gifpos/1.md), [*gifrotat*(1)](/gifrotat/1.md), [*gifrsize*(1)](/gifrsize/1.md), [*gifspnge*(1)](/gifspnge/1.md), [*giftext*(1)](/giftext/1.md), [*gifwedge*(1)](/gifwedge/1.md), [*icon2gif*(1)](/icon2gif/1.md), [*raw2gif*(1)](/raw2gif/1.md), [*rgb2gif*(1)](/rgb2gif/1.md), [*text2gif*(1)](/text2gif/1.md)

## COPYRIGHT

The GIFLIB distribution is Copyright (c) 1997  Eric S. Raymond

## AUTHORS

Gershon Elber

Eric S. Raymond \<esr@snark.thyrsus.com\>
