Link
Skip to main content

Java GIF Writer

The JDeli Java image library includes a GIF Writer to write GIF files in Java. The GIF Encoder is written in 100% Java and provides GIF support with no dependencies.

Key information:

  • 100% Java solution. No dlls or dependencies on native code
  • LZW compressed

Quick start or to replace in existing code using ImageIO:

JDeli.write(myBufferedImage, "gif", outputStreamOrFile);

or

byte[] outputData = JDeli.write(myBufferedImage, "gif");

New method for quick and simple usage

JDeli.write(myBufferedImage, OutputFormat.GIF, outputStreamOrFile)

OutputFormat allows setting of any supported Image Format

For complete control of output:

final GifEncoderOptions options = new GifEncoderOptions();


//write out
JDeli.write(myBufferedImage, options, outputStreamOrFile);

GifEncoderOptions allows setting of specific options.

Various image processing operations can be conducted on the image, detailed documentation can be found here.


Why JDeli?

  • Support image formats such as AVIF, HEIC and JPEG XL (AVIF soon) that are not supported in Java.
  • Process images up to 3x faster than ImageIO and alternative Java image libraries.
  • Prevent JVM crashes caused by native code in other image libraries such as ImageIO.
  • Handle JPEG, PNG, TIFF image file formats fully in Java.
  • Keep your Image files secure as JDeli makes no calls to any external system or third party library.

Learn more about JDeli

Start Your Free Trial