You guys know that I've been working on a GIF editing library for about for the last two weeks right?
I've been posting about it in the workshop forum.
It uses nothing but xTalk script with lots of binaryDecode/Encode, baseConvert, byteToNum/numToByte.
So where I'm at on that is this:
1 Handler that can scan/parse every chunk in a GIF file (even if it doesn't recognize a chunk, such as those added by ImageMagick and others), can optionally spit out a labeled log of the parsing, and then returns an multi-dimensional Associative Array with all of the parts of the GIF as separate elements.
What I'm working on now is the inverse Handler that reassembles from at the GIFArray back into GIF file data. That part I hope to finish tonight. Once reassembly is working, then it can be expanded into a library for doing different things to and with the GIF data.
We'll be able to edit all of the parameters of the GIF that the IDE currently can not, such as the frameDelay Time for each frame, change color tables, change transparency color index, embed comments and other data, etc.
I have a folder full of GIFs with various parameters that I'm testing /verifying it against.
What it does NOT do is decode any of the LZW encoded imageData of the image frames, our xTalk Engine already has GIFLib built-in for that.
I just wanted to change the frameDelay times without rebuilding the GIF File in an external editor every time, but it turned into building a handler that reads almost the entire GIF format.
viewtopic.php?p=7320#p7320