434445464748495051
public class ImageUtil { public static void encodeGIF(BufferedImage image, OutputStream out) throws IOException { Gif89Encoder encoder = new Gif89Encoder(image); encoder.encode(out); }