Link
Skip to main content

Java AVIF Reader

The JDeli Java image library includes a AVIF Reader to read AVIF images into Java. The AVIF Decoder is written in 100% Java and provides AVIF support with no dependencies.

What is supported

The JDeli AVIF reader supports the following features:

Feature Support
Compression - Lossy Yes
Compression - Lossless Yes
YUV 4:2:0 Yes
YUV 4:2:2 Yes
YUV 4:4:4 Yes
HDR No
Alpha Yes
Animation No
Metadata EXIF
ICC Yes
Takes file input Yes
Takes InputStream input Yes
Takes byte[] input Yes
Pure Java implementation Yes

Quick start:

Add JDeli to your project via Maven or Gradle, or see using JDeli with Java modules.

JDeli can automatically detect the file type and will use the AVIF File Reader

BufferedImage image = JDeli.read(avifImageFile);

or

AvifDecoder decoder = new AvifDecoder();
BufferedImage image = decoder.read(avifData);

See the full Javadoc.


Frequently asked questions

Can Java read or decode AVIF files without external libraries?

No. Java’s built-in ImageIO does not support reading or decoding AVIF files. JDeli provides a pure-Java AVIF decoder with no dependencies required.

Does reading or decoding AVIF in Java with JDeli require additional libraries?

No. JDeli is a 100% Java library with no dependencies. It runs on any platform where the JVM runs with no additional installation.

What input types does JDeli support for reading AVIF?

JDeli can read and decode AVIF from a File, InputStream, or byte array.

See also


Why JDeli?

  • Support image formats such as AVIF, HEIC and JPEG XL 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