GIF2RGB(1)

πŸ“¦
version 6.1.3 Β· 2 versions
  • 6.1.3 Β· alpine 3.22, alpine 3.23, alpine 3.24, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute (latest)
  • 5.2.1 Β· debian bookworm, ubuntu jammy
, in alpine 3.22, alpine 3.23, alpine 3.24, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute

✨ GIF2RGB(1) ✨

okay bestie, sit down, we're learning gif2rgb from the giflib docs today πŸ’– this one's a little conversion goblin that flips images between GIF and raw RGB triplets, and honestly? it's giving "small tool, big opinions" πŸŽ€


🌸 NAME 🌸

gif2rgb β€” convert images saved as GIF to 24-bit RGB triplets πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸ‘‘ OPTIONS πŸ‘‘

  • -v β€” verbose mode, aka show me the progress bestie. It turns on printout of the running scan lines. πŸ”₯
  • -1 β€” only one file is read or written, in the format of RGBRGB... triplets (each of R, G, B is a byte). That file's size is 3 * Width * Height. If stdin is used for input, or stdout for output, this option gets applied implicitly β€” no cap. The default (when you don't pass -1) is 3 files named OutFileName.R, OutFileName.G, OutFileName.B, and each of those is Width * Height bytes.
  • -c colors β€” sets how many colors to use in RGB-to-GIF conversions, measured in bits per pixel. so -c 8 actually means 256 colors, which is the maximum and also the default. πŸ’œ
  • -s width height β€” puts you in RGB-to-GIF conversion mode and sets the size of the image to read. 🌈
  • -o β€” specifies the name of the out file (peep -1 above for the whole one-file-or-three-files situation πŸ‘€).
  • -h β€” prints one line of command line help, kinda like the Usage line above. tiny but iconic.

🧚 THE VIBES (aka how it actually behaves) 🧚

By default, it converts a GIF input file into RGB triplets. But the second you throw -s in there, the whole energy flips and it converts RGB input into a GIF instead. ✨

And if you hand it no input file at all? gif2rgb will just try to read data from stdin. main character behavior honestly 🫢


πŸ’€ BUGS πŸ’€

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

πŸŽ€ AUTHOR πŸŽ€

Gershon Elber. respect the legend πŸ’–


and that's the whole page bestie!! this was GIFLIB, dated 2 May 2012, and it lives in the GIF2RGB(1) section of your manual. slay, go convert something πŸ’…βœ¨πŸŒΈ