gif2rgb(1)

gif2rgb1

Convert images saved as gif to 24-bit rgb triplets

Usage

gif2rgb [-v] [-1] [-c colors] [-s width height] [-o outfile] [-h] [gif-file]

Options

-v

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

-1

Only one file in the format of RGBRGB... triplets (Each of R, G,B is a byte) is being read or written. This file size is 3 * Width * Height. If stdin is used for input or stdout for output, this option is implicitly applied. The default (if not `-1') is 3 files with the names OutFileName.R, OutFileName.G, OutFileName.B, each of which is Width * Height bytes.

-c colors

Specifies number of colors to use in RGB-to-GIF conversions, in bits per pixels, so '-c 8' actually specifies 256 colors (maximum and default).

-s width height

Sets RGB-to-GIF conversion mode and specifies the size of the image to read.

-o

specifies the name of the out file (see also `-1' above).

-h

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

By default, convert a GIF input file to RGB triplets. If -s is specified, convert RGB input to a GIF.

If no input file is given, gif2rgb will try to read data from stdin.

Releases

13 releases since Debian 2.1 (Slink); the text changed 6 times.

  1. 2.1
  2. 2.2
  3. 3.0–4.0
  4. 6.0–8
  5. 9–10
  6. 11–12
  7. 13

-1 since Debian 9 (Stretch); -c since Debian 9 (Stretch); -h since Debian 9 (Stretch); -o since Debian 9 (Stretch); -v since Debian 9 (Stretch).

-q until Debian 4.0 (Etch).

Bugs

Feeding this utility a GIF with an invalid colormap, or other kinds of malformations, index will produce invalid output and may core-dump the tool. Don't do that.

Author

Gershon Elber.

From giflib-tools 5.2.2-1+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.