[comp.graphics] GIF Specification help

lmm@cci632.UUCP (Lance Michel) (02/09/90)

I'm currently in the process of writing a GIF print driver for my Seikosha
color graphics printer.  I have examined a GIF spec. form CompuServe and 
have a general idea how the images are encoded.  What I am still looking for
is a sample GIF file that is *very* simple to use as a test pattern and/or
learning tool.   Even better would be a document which uses a tiny GIF as
an example and lays it out byte by byte.  From what I read of the spec, the
GIF could be something like 10X10X4.  An example could be:

		R R R R R R R R R R     R = Red
		R G G G G G G G G R     B = Blue
		R G B B B B B B G R     G = Green
		R G B W W W W B G R     W = White (or Black?)
		R G B W R G W B G R
		R G B W B W W B G R
                R G B W W W W B G R
		R G B B B B B B G R
		R G G G G G G G G R
		R R R R R R R R R R

If could help me build a byte by byte GIF file for the above example, or
you know of a tiny GIF which already exists (Hopefully accessable with CIS)
I will place you in my list of Saint-hood individuals and give you your share
of $cash$ when I hit the big Lotto number...  Thanks. Lmm



lmm@cciop632.UUCP

(^:  "I bought an Octal calculator but the 8 and 9 keys were broken"  :^)       

falk@sun.Eng.Sun.COM (Ed Falk) (02/10/90)

In article <33861@cci632.UUCP>, lmm@cci632.UUCP (Lance Michel) writes:
> GIF could be something like 10X10X4.  An example could be:
> 
> 		R R R R R R R R R R     R = Red
> 		R G G G G G G G G R     B = Blue
> 		R G B B B B B B G R     G = Green
> 		R G B W W W W B G R     W = White (or Black?)
> 		R G B W R G W B G R
> 		R G B W B W W B G R
>		R G B W W W W B G R
> 		R G B B B B B B G R
> 		R G G G G G G G G R
> 		R R R R R R R R R R
> 
> If could help me build a byte by byte GIF file for the above example, or
> you know of a tiny GIF which already exists (Hopefully accessable with CIS)
> I will place you in my list of Saint-hood individuals and give you your share
> of $cash$ when I hit the big Lotto number...  Thanks. Lmm

Here you go:


begin 664 tiny.gif
M1TE&.#=A"@ * *$! /____H     _P#_ "P     "@ *   "'(R/,<MK(Z(<
63X +!%56Y0UEEU9A7R5%8,,D;@$ .P#_
 
end

In my opinion, you'd be better off just using fbm or pbm; that's how I
created this file.

-- 
	-ed falk, sun microsystems, sun!falk, falk@corp.sun.com

  "If you wrapped yourself in the flag like George Bush does, you'd
  be worried about flag-burning too"