pub package GitHub stars GitHub forks GitHub license GitHub issues

Encode images into Jpeg format through native FFI binding.

example

Tip

If this package is useful to you, please remember to give it a star✨ (Pub | GitHub).

Getting Started

dependencies:
  jpeg_encode_ffi: ^0.0.1+1
import 'package:jpeg_encode_ffi/jpeg_encode_ffi.dart';

// Encode the image to a file in JPEG format.
encodeJpegImageToFile(ui.Image image, String path, {int quality = 95});

// Encode image pixels to file in JPEG format.
encodeJpegToFile(
  Uint8List pixels,
  int width,
  int height,
  int comp,
  String path, 
  {int quality = 95}
)

Other Dart and Flutter libraries

  • flutter_hypertext: A highly extensible rich text widget that can automatically parse styles.
  • flutter_ticker: A flutter text widget with scrolling text change animation.
  • varint: A Dart library for encoding and decoding variable-length quantity (VLQ).

Libraries

jpeg_encode_ffi