encodeHeif function

Uint8List encodeHeif(
  1. Image image, {
  2. HeifEncodeOptions? options,
})

Encodes straight RGBA8 as HEIC with lossless alpha.

Implementation

Uint8List encodeHeif(
  Image image, {
  HeifEncodeOptions? options,
}) => const HeifEncoder().encode(
  image,
  encodeOptions: options,
);