Lower Your Computation Footprint with AVIF
JDeli is the pure Java solution for developers working with the AVIF format
What is the AVIF file format?
Optimal Choice for Web Development
AVIF (AV1 Image File Format) is a modern image file format. It is an optimal choice for web development as it provides rich and vibrant images with a smaller size leading to stable performance and a better user experience. AVIF was released in 2019 and provides at least 30% better file compression compared to its alternatives.
Problems with AVIF files in Java
Java developers commonly run into several frustrating and time-consuming problems:
Lack of Pure Java support for AVIF
Java's lack of support limits compatibility with modern image standards.
Complicated Open Source Solutions
Free solutions require use of wrappers on native libraries/tools increasing complexity.
Changes in Existing Code
Implementation of AVIF solutions include refactoring existing code.
JVM Crashes
Instability of the platform due to native plugins or heap issues.
Read, Write and Convert AVIF files in pure Java with JDeli
JDeli helps unlock the potential of AVIF file format with a few lines of Java code:
// Read AVIF files
JDeli.read(File AvifFile);
JDeli.read(byte[] AvifData);
JDeli.read(InputStream AvifStream);// Write AVIF files
// To a File
JDeli.write(myBufferedImage, "avif", new File("output.avif"));
// To an OutputStream
JDeli.write(myBufferedImage, "avif", outputStream);
// To a byte array (returns the encoded bytes)
byte[] avifData = JDeli.write(myBufferedImage, "avif");// Convert to and from AVIF files
JDeli.convert(File inFile, File outFile);
JDeli.convert(InputStream inStream, OutputStream outStream, String format);
byte[] outputData=JDeli.convert(byte[] inputData, String format);Already using ImageIO?
Java developers that work with ImageIO know of its lack of support for the AVIF format.
JDeli can effortlessly enhance ImageIO with
our plugin — your
existing image-handling code stays exactly the same!
Trusted by Companies around the World
Frequently asked questions
Does Java ImageIO support AVIF?
No. Java’s built-in ImageIO has no AVIF support. JDeli adds it via an ImageIO plugin. Drop in the JAR and your existing ImageIO.read() / ImageIO.write() calls gain AVIF support without code changes.
Are there free Java libraries for AVIF?
The main free option is vavi-image-avif, a Java ImageIO plugin that wraps native libavif via JNA, which requires native binaries on the server.
Can I convert a PDF to AVIF in Java?
JDeli does not read PDF files. To convert PDF pages to AVIF in Java, use JPedal. See Convert PDF to AVIF in Java.
How do I convert AVIF to JPG in Java?
Call JDeli.convert(new File("input.avif"), new File("output.jpg")). JDeli infers the output format from the file extension. See Convert AVIF to JPG in Java for a full example.
How do I convert AVIF to PNG in Java?
Call JDeli.convert(new File("input.avif"), new File("output.png")). JDeli infers the output format from the file extension. See Convert AVIF to PNG in Java for a full example.
Why use JDeli for AVIF image support?
1.
2.
3.