Java JPEG XL Reader
The JDeli Java image library includes a JPEG XL Reader to read JPEG XL images into Java. The JPEG XL Decoder is written in 100% Java and provides JPEG XL support with no dependencies.
What is supported
The JDeli JPEG XL reader supports the following features:
| Feature | Supported |
|---|---|
| Alpha transparency | Yes |
| Colour optimisation | Yes |
| BufferedImage input | Yes |
| Compression - 8bit Quantised | Yes |
| Compression - JPEG | Yes |
| Metadata | EXIF |
| 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 JPEG XL File Reader
BufferedImage image = JDeli.read(jpegxlImageFile);
or
JpegXLDecoder decoder = new JpegXLDecoder();
BufferedImage image = decoder.read(jpegxlData);
Frequently asked questions
Does JDeli produce better JPEG XL reading and decoding than Java ImageIO?
Yes. While ImageIO can read JPEG XL, JDeli provides better compatibility, more consistent output across platforms, and access to format-specific decoding options.
Does reading or decoding JPEG XL 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 JPEG XL?
JDeli can read and decode JPEG XL from a File, InputStream, or byte array.