CONTENTS

Home
Projects
More Projects
Resume
Computer Skills
Music
Links To Friends
Pictures
About Mike

Random Link
Naken Chat



libkohn_gif

Related pages on www.mikekohn.net: SSE Image Processing, GIF, TIFF, BMP/RLE, JPEG, AVI, kunzip, gif2avi, Ringtone Tools, yuv2rgb

GIF and LZW Compression/Decompression

I originally wrote routines like these for a job, but I wanted to have my own code at home so I rewrote it all from scratch, hopefully writing it better this time :).

So anyway, if you want to see how lzw works, you can download the test source code here. This sample program will simply decompress a GIF and save it as a 24 bit bitmap called debug.bmp and then recompress it into a GIF picture called debug.gif. I started shaping this code so it would fit into a flexible, easy to use library (DLL or .so), I'll probably be posting it soon when I have a chance to polish it up. I also started translating the code to C# for fun. I'll post that too when it's ready. I'll probably also do a Java version so I can benchmark the speed of C# vs. Java.

For a partial explanation of LZW click here.

gif_crop, gif2ascii, gif2html

I included 3 sample programs that use libkohn_gif. One will crop gifs, another will turn a gif into ascii art, and the third will turn the gif into an html table.

An example of an image run through the gif2html can be seen here:

Original GIF Output HTML Image

NOTE: I'm working on documentation for libkohn_gif. I'll post it as soon as I have time. The final release of libkohn_gif will be under LGPL.

Downloads

libkohn_gif-2007-09-12.tar.gz (Source Code)
libkohn_gif-2007-09-12.zip (Windows DLL)

gif-2004-08-19.tar.gz (Source Code)

The following is an lzw compressor/decompressor with no GIF headers and such. I wrote it for a proof of concept for a future project.

lzw-2004-08-20.tar.gz (Source Code)

These packages are NOT opensource. If you'd like to use this code in your own projects (commercial or not) let me know and we can work something out.


Copyright 1997-2008 - Michael Kohn

Please visit my many other projects, including free J2ME Java games for Mobile phones, graphics and sound programs, chat software, and much more at http://www.mikekohn.net.

This page was designed to work with all standard HTML compatible webbrowsers including Firefox, IE, Safari, and Links.