Hey Dalto, I have been looking into GIF decoding recently and you seem to have figured it out pretty easily, could you suggest any good sources please?
WhiteFalcon posted on Jul 19 2004 at 07:44 PM said:
Hey Dalto, I have been looking into GIF decoding recently and you seem to have figured it out pretty easily, could you suggest any good sources please?
Well, to figure out how to parse the header and color table I used a copy of the GIF 89m specification. I can send you a copy if you need one. This was actually quite easy.
However, as I am sure you are already aware, the image data is LZW compressed. Unfortunately, I did not have access to a decent book and all the info I found on the web was crap. So, I went with the tried and true method of using a LZW decompression routine that somebody else wrote.
I could not begin to guess where I got it from, but I could send it to you if you want it.
Thanks, but I already have the specification as well as some other docs. And you are right, LZW compression is the thing I am after I sort of understand it but am not sure about its realization. Will just have to try and see I guess...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.