An open API service indexing awesome lists of open source software.

https://github.com/stephane-archer/flutter-jxl-coder

JpegXL encoding and decoding for Flutter
https://github.com/stephane-archer/flutter-jxl-coder

dart dartlang decoder encoder flutter flutter-image-compress flutter-package flutter-photography jpeg-xl jpeg-xl-decoder jpeg-xl-encoder jpegxl jxl jxl-decoder jxl-encoder mac

Last synced: 12 days ago
JSON representation

JpegXL encoding and decoding for Flutter

Awesome Lists containing this project

README

          

# JpegXL encoding and decoding for Flutter

## Usage

``` Dart
Uint8List jpegData = await file.readAsBytes();
final Uint8List? jxlData = await JxlCoder.jpegToJxl(jpegData);

Uint8List jxlData = await file.readAsBytes();
final Uint8List? jpegData = await JxlCoder.jxlToJpeg(jxlData);

await JxlCoder.saveJpegAsJxl(inputFile.path, outputFile.path);

await JxlCoder.saveJxlAsJpeg(inputFile.path, outputFile.path);
```