compressToWebp static method

Future<Uint8List> compressToWebp(
  1. Uint8List pngBytes,
  2. double width,
  3. double height, [
  4. int quality = 100,
])

Compresses bytes to WEBP.

Only an Android.

Implementation

static Future<Uint8List> compressToWebp(
    Uint8List pngBytes, double width, double height,
    [int quality = 100]) async {
  return await ImageGeneral.compressToWebp(pngBytes,
      width: width, height: height, quality: quality);
}