Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 438 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 438 Bytes

JpegXL encoding and decoding for Flutter

Usage

    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);