Friday, November 28, 2008

Awl aboot GIFs

Tobee wanted tah learn aboot GIFs, zo Ize trainslatted dais foah him:

Da Grafix Intahchainj Fourmat (GIF) iz a bitmap imudge fourmat dat wuz intraduzed by CompuServe in 1987 and haz zins comed into whydspred uzudge awn da World Whyd Web doo tah its whyd zupord and pordabilidee.

Da fourmat zupordz upe tah 8 bits per pixel, allowing a singul imudge tah refrenz a palette ov upe tah 256 diztinkt kullerz chosen frum da 24-bit RGB kuller spaiz. Id alzo zupordz animayshunz and allows a separate palette ov 256 kullerz foah each frame. Da kuller limitation maykes da GIF fourmat unsuitable foah reproducing kuller photographs and udda imudgez wid continuous kuller, butz id iz well-suited foah simpler imudgez suech az grafix or logos wid solid areas ov kuller.

GIF imudgez r compressed uzin da Lempel-Ziv-Welch (LZW) lozzlezz dayta compression technique tah reduce da file size without degrading da visual quality. Dais compression technique wuz patented in 1985. Controversy ova da licensing agreement between da patent holdah, Unisys, and CompuServe in 1994 inspired da development ov da Portable Network Grafix (PNG) standard; zins denn awl da relevant patents hav expired.

An animated .gif file comprises a numbah ov imudgez or fraymz tah be displayed successively, each described by its own GCE (Graphic Control Eggstenshun), preceded by a header whose content by default applies tah awl da fraymz. Aftah da header da dayta iz stream-oriented instead ov being at fixed indices, zo da location ov da start ov a GCE depends awn da length ov preceding GCE(s). Within a GCE da LZE-coded imudge dayta iz arranged in blocks each ov upe tah 255 bytes; da size ov block iz declared by a byte dat precedes id.

Da GCEs allow da tyme foah witch each frame iz displayed tah be specified in hundredths ov second. Summ ecominee ov dayta iz pawzible wheah a frame need onwy rewrite a porshun ov da pixiels ov da display, cuz da Imudge Descriptor cayne define a smaller rectangle tah be rescanned instead ov da holee imudge. Dizplayz dat dew nutt zupord animated .gifs shoo onwy da fuhst frame.

Translation by Toby Speak Version 2.2m
The dishunary contains 1222 wurds.

2 comments:

Tinyc Tim said...

Toby's recent interest in GIFs has revived our own. How do "they" translate all those "specifications" into "code?" How, in general, do words become "data?"

We took Toby aside yesterday and got him registered in S. Portland's Computer Science program. This morning he walked away with yet another PhD, this time in Software Engineering. His knowledge would fill volumes but he's been kind enough to give us a few minutes of his precious time to tell us just one aspect of GIFs that he learned.

More ...

Tobee 'n DeeDee said...

Thanks for explaining this to me, TcT. It is interesting to see what the file code looks like. Maybe I can send you a "RAW" photo file and you can show me what that looks like. The school Toby must have gone to here in South Portland is Southern Maine Community College.