[REBOL] Re: compression
From: hallvard:ystad:helpinhand at: 12-Sep-2001 20:40
Gregg Irwin skrev (17.44 12.09.2001):
>I'm not clear on what you need. Do you want something to compress the GIF
>file once it's created, or do you need something that will compress a
>buffer that goes into the GIF file? I'm guessing the latter because,
>otherwise, you could just use REBOL's compression. In that case I don't
>have anything on hand. Ole Friis has a Huffman example on REBOL forces,
>and I just did a very quick RLE, but I don't know of LZW in REBOL.
You're right. What I was looking for was a function to do the LZW compression of the
raster data in a GIF image. Huffman is good for JPEGs, and I might just have a look at
it. Thanks for the tip.
I believe there are some restrictions for use of the LZW algorithm, and I think that's
why the PNG format was developed. So it might just be that making an LZW compression
function simply isn't legal without purchasing some sort of a licence... I don't know.
If I should decide to convert my old java classes into some stammering rebol code, I'll
check it out before posting anything to the rebol community. Or does anyone know (for
sure) something contrary?