Work-in-progress pure java JPEG XL decoder
JXLatte is built with the Meson build system.
To build, create a build directory, for example, with mkdir build && cd build.
Then run meson setup ../ to set up the build directory, and ninja to compile JXLatte.
You can also build JXLatte using Maven. Just run mvn clean install.
The artifact will be installed to the local repository, and then you can reference it in your project like this
Maven
<dependency>
<groupId>com.traneptora</groupId>
<artifactId>jxlatte</artifactId>
<version>0.1.0</version>
</dependency>Gradle
implementation 'com.traneptora:jxlatte:0.1.0'Gradle(Kotlin)
implementation("com.traneptora:jxlatte:0.1.0")JXLatte can be executed just like any normal jar file:
java -jar jxlatte.jar samples/art.jxl output.pngThe JAR can also be used as a library. To use it, add it to your application's classpath.
InputStream input = someInputStream;
OutputStream output = someOutputStream;
JXLDecoder decoder = new JXLDecoder(input);
JXLImage image = decoder.decode();
PNGWriter writer = new PNGWriter(image);
writer.write(output);Supported features:
- All static Modular images
- All lossless images
- All JXL Art
- All Lossy Modular images
- All static VarDCT Images
- All JPEG reconstructions
- Other static VarDCT images
- Varblock Visualization
- Output:
- PNG
- SDR
- HDR
- PFM
- PNG
Features not yet supported at this time:
- Progressive Decoding
- Region-of-interest Decoding
- Animation