2 May 2012
raw2gif 1 GIFLIB GIFLIB Documentation
raw2gif convert raw pixel data to a GIF
`raw2gif` -v -s width height -p color-map -h raw-file

## Description

A program to convert RAW image data into GIF files. Only one image can be handled. The RAW image file is assumed to hold one pixel color in one byte, and therefore the file size must be Width times Height as specified by the -s option below.

If no raw-file is given, raw2gif will try to read RAW data from stdin. The generated GIF File is dumped to stdout.

## Options

-v

  Verbose mode (show progress). Enables printout of running scan lines.

-s width height

  The dimensions of the image must be specified in the command line. The raw image file size must be exactly width times weight bytes (each byte is one pixel color).

-p ColorMapFile

  Color map to load for given RAW image. This file has 4 integers in line (ColorIndex Red Green Blue), and the ColorIndex is in order starting from 1. See gifclrmap, which can also use/create these bitmap files. If no color map is specified, uses the EGA 16 color palette as default color map.

-h

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

## Author

Gershon Elber.