Link

Java WebP Writer

JDeli includes a WEBP Writer to write WEBP files in Java. The WEBP Encoder is written in 100% Java with no dependencies.

Key information:

  • 100% Java solution. No dlls or dependencies on native code
  • fast lossy compression
  • Smaller file size

Quick start or to replace in existing code using ImageIO:

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

or

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

New method for quick and simple usage

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

OutputFormat allows setting of any supported Image Format

For complete control of output:

final WebpEncoderOptions options = new WebpEncoderOptions();

//set any options in options instance - examples below
options.setCompressionFormat(WebpCompressionFormat.LOSSLESS);

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

WebpEncoderOptions allows setting of specific options.

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