Re: GIF encoding



Roedy Green wrote:
On Tue, 25 Sep 2007 16:04:43 GMT, "Andrew Thompson" <u32984@uwe>
wrote, quoted or indirectly quoted someone who said :

I had not realised GIF's could have 'compression'.

This is a sore point Unisys got hold of the patent to LZW compression
used in GIF and they started threatening people with it. It is
expired now, though you never know what a lawyer could do.

I think though your code does do LZW, thumbing its nose at Unisys.

The US LZW patent expired on June 20, 2003. The counterpart patents in the United Kingdom, France, Germany and Italy expired on June 18, 2004, the Japanese counterpart patents expired on June 20, 2004 and the counterpart Canadian patent expired on July 7, 2004. Consequently, while Unisys has further patents and patent applications relating to improvements to the LZW technique, the GIF format may now be used freely.

I believe Sun added in to Java 6 full GIF compatibility in ImageIO because the patents had long since expired by then.

LZW compression as implemented in GIF is now fully free!

--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.



Relevant Pages

  • Re: GIF encoding
    ... the Japanese counterpart patents expired on June 20, ... the GIF format may now be used freely. ... first frame and thus when adding the additional frames its not able to ... I have an animated gif. ...
    (comp.lang.java.programmer)
  • Re: GIMP for Web sites
    ... GIF is a proprietary standard or ... > opened by Gimp but another time the same file won't open. ... patents covering the LZW compression ... algorithm which is used in making GIF files. ...
    (alt.linux)
  • Re: Resizing a gif
    ... compression on gifs under Linux, now that the patents have expired? ... What I know is that GIF always uses LZW compression, so now GIF is freely usable in Gimp. ...
    (comp.graphics.apps.gimp)
  • Re: Resizing a gif
    ... LZW had always been included in the tarballs. ... I don't remember for GIF, but I remember that if you wanted to use LZW on TIFF you had to recompile libtiff downloading the libtiff-lzw-compression-kit. ...
    (comp.graphics.apps.gimp)
  • Re: How much lossless compression is possible in images?
    ... >> gif uses run length encode ... Gif uses LZW. ... Herc ...
    (sci.math)