GIFEncoder

Source Install FAQ

Java lets programmers load images (and URLs) with a single method call. This is a very empowering feature, and has resulted in many wonderful and vivid applets. Unfortunately, there is no built in way to save an image to a file. Because of this, Java hasn't yet spawned a new generation of image editors and filters.

GIFEncoder is a class which takes an image and saves it out to a stream using the GIF file format (Graphics Interchange Format). A GIFEncoder is constructed with either an AWT Image (which must be fully loaded) or a set of RGB arrays. It is a fairly rudimentary implementation, but it works.

There is no sample applet for GIFEncoder, since Netscape doesn't support file IO and I didn't feel like writing a custom server. However, I did write a small test application, which loads an image URL and saves the image as a GIF.

Version 0.90 was released on April 21, 1996.



Known Bugs



API

Source

The source for these classes is available, and can be freely distributed:


Back to The Old Stuff, or maybe you want to mail Adam.